Great question — answering as the UphillTech team:
You could specify what branch you want to pull: git pull origin master Or you could set it up so that your local master branch tracks github master branch as an upstream: git branch --set-upstream-to=origin/master master git pull This branch tracking is set up for you automatically when you clone a repository (for the default branch only), but if you add a remote to an existing repository you have to set up the tracking yourself. Thankfully, the advice given by git makes that pretty easy to remember how to do.
Full answer by ComputerDruid: https://stackoverflow.stackexchange.com/a/32056416 (CC BY-SA 3.0).
Need it done for your business? UphillTech.