git remote update origin prune code example Example: git remote update origin --prune git remote update origin --prune