Skip to content

Instantly share code, notes, and snippets.

@jjhamshaw
Created February 11, 2014 09:25
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 jjhamshaw/8931729 to your computer and use it in GitHub Desktop.
Save jjhamshaw/8931729 to your computer and use it in GitHub Desktop.
remove deleted remote branches
# Option 1) remove deleted branches on fetch
git fetch --prune
# Option 2) create an alias. Open your config file...
git config -e
# ...and add the following section
[alias]
pfetch = fetch --prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment