Great question — answering as the UphillTech team:
Update: Using Git Switch All of the information written below was accurate, but a new command, git switch has been added that simplifies the effort. If daves_branch exists on the remote repository, but not on your local branch, you can simply type: git fetch --all git switch daves_branch Since you do not have the branch locally, this will automatically make switch look on the remote repo. It will then also automatically set up remote branch tracking. Original Post You need to create a local branch that tracks a remote branch. The following command will create a local branch named daves_branch , tracking the remote branch origin/daves_branch . When you push your changes the remote branch...
Full answer by ralphtheninja: https://stackoverflow.stackexchange.com/a/9537923 (CC BY-SA 4.0).
Need it done for your business? UphillTech.