How to share a github repository with another user for pairing

Instructions for pairing while each github user has their own repository:

Each user should create their repository on github.

Each user should git remote add upstream copy_ssh_url_here_of_other_user

After doing the above if you run git remote -v you will see two remotes, one for your origin which is your respective github repo, and the other is for upstream which is your partner’s repo

When running git pull upstream master This will pull down any code your partner has pushed up to their github

When running git push this will push any changes you made to github, and allow your partner to git pull upstream master

If you will be working simultaneously create separate branches (git co -b <name-of-branch> and git pull and git merge <name-of-branch>  to master.

Happy Pairing!

 

 

Copyright Loving to Code 2025
Tech Nerd theme designed by Siteturner