pull a whole branch git code example
Example 1: git replace local branch with remote
git reset --hard origin/master
Example 2: pull from a brrrnch in git
$ git fetch origin other-branch
git reset --hard origin/master
$ git fetch origin other-branch