Last active
December 28, 2015 15:39
-
-
Save Martin91/7523747 to your computer and use it in GitHub Desktop.
[Git] Remove stale remote track branches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deletes all stale remote-tracking branches under <name>. | |
# These stale branches have already been removed from the remote | |
# repository referenced by <name>, but are still locally available | |
# in "remotes/<name>". | |
git remote prune origin | |
# Or, which fetches and prunes all origins. | |
git fetch -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment