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

  • Create a commit on each of thier machines

  • Current status
  • let ram push the changes
  • Current Status
  • Let Bheem push the changes
  • 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
  • Now bheem pushes the changes to remote repo
  • Current Status
  • Now let RAM does one commit
  • RAM when pushesh will fail, so ram decides to pull using rebase
  • Now push the changes
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Customized Social Media Icons from Acurax Digital Marketing Agency
Exit mobile version
%%footer%%