Added cleanup command to remove merged local branches
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
pu = pull
|
||||
r = reset
|
||||
s = status
|
||||
cleanup = "!output=$(git fetch -p && git branch -vv | grep ': gone]' | grep -v '*' | awk '{ print $1 }' | xargs -r git branch -d) && if [[ -z \"$output\" ]]; then echo 'No unparented branches deleted'; else echo \"$output\"; fi"
|
||||
[credential "https://git.zacke.dev"]
|
||||
provider = generic
|
||||
[push]
|
||||
|
||||
Reference in New Issue
Block a user