– Click “Create pull request”
– Optionally add a comment
– Click “Create pull request”
3. User A
• Connect to User B’s repository
git remote add userB git://github.com/userB/TestRepo
• Fetch the changes from User B
git fetch userB
• Checkout their version of the repository as a local branch
git checkout -b userB userB/master
• Check that you like the changes
• Use git branch to see your branches; the asterisk indicates the one you’re currently on.
• Switch back to (“checkout”) your master branch
git checkout master
• Note that the files are in the state that you left them.
• Merge their work into your master branch.
git merge userB
• Push the work to github.
git push
• Make another change to the file; then add, commit, and push.
4. User B
• Add a connection to User A’s repository
git remote add userA git://github.com/userA/TestRepo
• Fetch User A’s latest
git fetch userA
• Check it out as a local branch
git checkout -b userA userA/master
• Test things
• Checkout your master, merge the change from User A, and push to github.
git checkout master
git merge userA
git push
5. Users A and B
• Make simulateneous changes, then add, commit, and push.
2