git refresh local branch from remote code example
Example 1: how to update remote branches list git
git remote update origin --prune
Example 2: git checkout branch from remote to local
git checkout -b test origin/test
// making a local copy of the branch called "test" from origin.
Example 3: git command to refresh remote branches
git remote update origin --prune