git refresh remote branches and reset head code example Example: git command to refresh remote branches git remote update origin --prune