Skip to content

Commit

Permalink
Add clean-branches
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju committed Feb 15, 2025
1 parent 86b4b9e commit 8512955
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions clean-branches
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env dash
set -eu

# clean-branches
# delete all local branches except the current one

git branch | grep -v "^*" | xargs git branch -D

0 comments on commit 8512955

Please sign in to comment.