Skip to content

Instantly share code, notes, and snippets.

@Gummibeer
Last active June 19, 2020 15:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gummibeer/ec72373eb637f8178b6f70fa4d2e7d13 to your computer and use it in GitHub Desktop.
Save Gummibeer/ec72373eb637f8178b6f70fa4d2e7d13 to your computer and use it in GitHub Desktop.
git_delete_untracked_branches.sh
# EN
git checkout master && git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
# DE
git checkout master && git fetch -p && git branch -vv | awk '/: entfernt]/{print $1}' | xargs git branch -D
@Gummibeer
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment