Removing local copies of deleted remote branches
suggest changeIf a branch was deleted on the remote, the matching remote-tracking ref (such as origin/old) can still exist locally. Prune deletes those remote-tracking refs. It does not delete your local branches.
To prune deleted branches from a specific remote:
git fetch [remote-name] --prune
To prune deleted branches from all remotes:
git fetch --all --prune
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents