create a branch that tracks remote code example
Example 1: create local and remote branch
git checkout -b yourBranchName
git push -u origin yourBanchName
Example 2: 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'