+ git fetch upstream && git merge upstream/master master + ~~ code example
Example: git fetch upstream from master
$ git rebase upstream/master
$ git checkout master
$ git fetch upstream
$ git rebase upstream/master
$ git checkout master
$ git fetch upstream