feat: git aliases for dead local branches

This commit is contained in:
Ted Kulp
2023-11-30 13:08:20 -05:00
parent 723e16aba7
commit f6c0470621

View File

@@ -34,6 +34,9 @@
[alias]
mdr = merge --no-commit --no-ff
dead-local-branches = "!git branch -vv | grep ': gone]'| grep -v '\\*' | awk '{ print $1; }'"
delete-dead-local-branches = "!git branch -vv | grep ': gone]'| grep -v '\\*' | awk '{ print $1; }' | xargs -r git branch -d"
force-delete-dead-local-branches = "!git branch -vv | grep ': gone]'| grep -v '\\*' | awk '{ print $1; }' | xargs -r git branch -D"
[init]
defaultBranch = main