Skip to content

Instantly share code, notes, and snippets.

@inog
Last active May 14, 2021 11:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inog/97ea0c724626114f43a6f5ed1e3d1dd1 to your computer and use it in GitHub Desktop.
Save inog/97ea0c724626114f43a6f5ed1e3d1dd1 to your computer and use it in GitHub Desktop.
delete local branches
//garbage collector
git gc
// alle remotes die keinen verbindung mehr zum server haben
git remote prune origin -n
// alle branches die nicht gemergt sind und nicht master|develop|\* heißen löschen
git branch | egrep -v "(master|develop|\*)"| xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment