Added cleanup command to remove merged local branches
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
pu = pull
|
pu = pull
|
||||||
r = reset
|
r = reset
|
||||||
s = status
|
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"]
|
[credential "https://git.zacke.dev"]
|
||||||
provider = generic
|
provider = generic
|
||||||
[push]
|
[push]
|
||||||
|
|||||||
Reference in New Issue
Block a user