git fetch origin master locally code example
Example 1: git get remote branches
git branch -r
Example 2: git pull from differemt server
$ git remote add repo_b username@host:path/to/repository.git
$ git pull repo_b master
git branch -r
$ git remote add repo_b username@host:path/to/repository.git
$ git pull repo_b master