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
