Add prune aliases
This commit is contained in:
parent
cb0017e68a
commit
1fc874a34c
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ grept = grep --break --context 1 --full-name --heading --ignore-case --line-
|
||||||
# Push current branch to origin
|
# Push current branch to origin
|
||||||
push-to-origin = "!f(){ git push --set-upstream origin $(git current-branch) "$@"; }; f"
|
push-to-origin = "!f(){ git push --set-upstream origin $(git current-branch) "$@"; }; f"
|
||||||
pso = "!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]
|
[clean]
|
||||||
requireforce = true
|
requireforce = true
|
||||||
|
|
Loading…
Reference in a new issue