During development, sometimes I am too lazy to type in which branch in git remote that I am supposed to pull from / push to.
Then I found the set-upstream options.
git branch --set-upstream master origin/master
- master is the name of my local branch
- origin is my remote name
- and master is also the name of my remote branch
However, I often use the syntax for pushing / pulling from my heroku. So in my case the commands will looks like the following:
git branch --set-upstream master heroku/master