mirror of
https://github.com/tedkulp/dotfiles
synced 2026-04-18 21:54:46 -04:00
feat: git aliases for dead local branches
This commit is contained in:
@@ -34,6 +34,9 @@
|
|||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
mdr = merge --no-commit --no-ff
|
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]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
|
|||||||
Reference in New Issue
Block a user