how to update local branches with remote branches command line code example
Example 1: how to update remote branches list git
git remote update origin --prune
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'