Added alias to clean branches

This commit is contained in:
Ari Sosnovsky committed 2024-07-11 11:55:17 -04:00
1 parent 69ee8b74bf
commit 984c0e4dc1
1 file changed
+4 -1
+4 -1
View File
@@ -26,4 +26,7 @@ sync = "!f() { \
target_branch=${1:-main}; \
remote=${2:-origin}; \
git fetch $remote $target_branch:$target_branch; \
}; f";
}; f";
clean-branches = "!f() { \
git for-each-ref --format '%(refname:short)' refs/heads| grep -v 'master\\|main' | xargs git branch -D ; \
}; f";