update local branches from remote code example
Example 1: how to update remote branches list git
git remote update origin --prune
Example 2: git replace local branch with remote
git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name