Added alias to clean branches
This commit is contained in:
1 parent
69ee8b74bf
commit
984c0e4dc1
1 file changed
+4
-1
@@ -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";
|
||||
Reference in new issue
Block a user