Removing local copies of deleted remote branches

suggest change

If 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents