DevOps Classroomnotes 24/Feb/2023

Git Contd

Multi User Git Scenarios

  • Create a Git Repo in GitHub
  • GitHub and many repositories use md (markdown) as a default document format
  • Simulate two users (RRR)
    • Ram
    • Bheem
  • Create local configs for username and emails
    Preview
    Preview
  • Create a commit on each of thier machines
    Preview
    Preview
  • Current status
    Preview
  • let ram push the changes
    Preview
  • Current Status
    Preview
  • Let Bheem push the changes
    Preview
  • This failed as bheems origin doesnot represent latest changes in Remote.
  • Bheem now executes (git pull) which will fetch the changes from remote and merge the changes. In this situation due to merge an extra commit is created
    Preview
  • Now bheem pushes the changes to remote repo
    Preview
  • Current Status
    Preview
  • Now let RAM does one commit
    Preview
  • RAM when pushesh will fail, so ram decides to pull using rebase
    Preview
  • Now push the changes
    Preview

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube