Add prune aliases

This commit is contained in:
Alexander Hess 2025-01-04 13:21:24 +01:00
parent cb0017e68a
commit 1fc874a34c
Signed by: alexander
GPG key ID: 344EA5AB10D868E0

View file

@ -108,6 +108,8 @@ grept = grep --break --context 1 --full-name --heading --ignore-case --line-
# Push current branch to origin
push-to-origin = "!f(){ git push --set-upstream origin $(git current-branch) "$@"; }; f"
pso = "!f(){ git push --set-upstream origin $(git current-branch) "$@"; }; f"
prune-gone = "!git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}'"
prune-delete = "!git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -d"
[clean]
requireforce = true