git branch from remote repository code example
Example 1: how to track a branch on github
$ git checkout --track origin/serverfix
Branch serverfix set up to track remote branch serverfix from origin.
Switched to a new branch 'serverfix'
Example 2: git get remote branch
git fetch
git checkout test