When a branch is removed from your git central server, remote branch on your machine won't get removed automatically. You might already know popular command to clean those removed branches, which is
git remote prune origin
But also you could give
--prune or
-p argument to
fetch or
pull to do the pruning for you after it's done with its normal behavior. For example,
git fetch -p
git pull -p
If you are in the habit of using
remote prune that's fine. These prune arguments just save you one extra step if you just put them in to help cleanup once in a while.
No comments:
Post a Comment