git update branch 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
Example 3: git replace local branch with remote
git reset --hard origin/master
Example 4: git command to refresh remote branches
git remote update origin --prune