We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a78f1e commit 38e9526Copy full SHA for 38e9526
git-delete-orphan-branches
@@ -0,0 +1,3 @@
1
+#!/usr/bin/env bash
2
+
3
+git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D "$branch"; done
0 commit comments