$ git pull origin master $ git branch --set-upstream-to=origin/master master $ git pull $ git branch -u origin/master Branch 'master' set up to track remote branch 'master' from 'origin'.