Skip to content

Instantly share code, notes, and snippets.

@dev3loperb
Created May 16, 2021 14:27
Show Gist options
  • Save dev3loperb/c644fed9f5d7277362667efab993e95c to your computer and use it in GitHub Desktop.
Save dev3loperb/c644fed9f5d7277362667efab993e95c to your computer and use it in GitHub Desktop.
Remove untracked git branches
git branch --merged >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment