get local branch to track with remote code example
Example 1: create local branch to track remote
git checkout --track origin/some_remote_branch
Example 2: git track remote branch
$ git checkout --track origin/dev
Branch dev set up to track remote branch dev from origin.
Switched to a new branch 'dev'