feature (git): add alias for git-delete-stale-branch

pull/2112/head
Gurkirat Singh 2022-03-07 11:31:04 +05:30
parent d059308c97
commit 6f1dcd1433
No known key found for this signature in database
GPG Key ID: 5D829219EF259AA5
1 changed files with 7 additions and 6 deletions

View File

@ -17,6 +17,7 @@ alias gbd='git branch -d'
alias gbm='git branch -m'
alias gbt='git branch --track'
alias gdel='git branch -D'
alias gdsb='git-delete-stale-branch'
# for-each-ref
alias gbc='git for-each-ref --format="%(authorname) %09 %(if)%(HEAD)%(then)*%(else)%(refname:short)%(end) %09 %(creatordate)" refs/remotes/ --sort=authorname DESC' # FROM https://stackoverflow.com/a/58623139/10362396
@ -185,10 +186,10 @@ alias gtd='git tag -d'
alias gtl='git tag -l'
case $OSTYPE in
darwin*)
darwin*)
alias gtls="git tag -l | gsort -V"
;;
*)
*)
alias gtls='git tag -l | sort -V'
;;
esac