Skip to content

Instantly share code, notes, and snippets.

@Martin91
Last active December 28, 2015 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Martin91/7523747 to your computer and use it in GitHub Desktop.
Save Martin91/7523747 to your computer and use it in GitHub Desktop.
[Git] Remove stale remote track branches
# 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