Unverified Commit 1c9a64ec authored by Michael Fryar's avatar Michael Fryar Committed by GitHub

feat(git): add `gswm` and `gswd` aliases (#9897)

Co-authored-by: 's avatarNathaniel Young <nathanielyoung95070@gmail.com>
parent 5fb204fa
...@@ -169,6 +169,8 @@ plugins=(... git) ...@@ -169,6 +169,8 @@ plugins=(... git)
| gsu | git submodule update | | gsu | git submodule update |
| gsw | git switch | | gsw | git switch |
| gswc | git switch -c | | gswc | git switch -c |
| gswm | git switch $(git_main_branch) |
| gswd | git switch $(git_develop_branch) |
| gts | git tag -s | | gts | git tag -s |
| gtv | git tag \| sort -V | | gtv | git tag \| sort -V |
| gtl | gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl | | gtl | gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl |
......
...@@ -295,6 +295,8 @@ alias gstall='git stash --all' ...@@ -295,6 +295,8 @@ alias gstall='git stash --all'
alias gsu='git submodule update' alias gsu='git submodule update'
alias gsw='git switch' alias gsw='git switch'
alias gswc='git switch -c' alias gswc='git switch -c'
alias gswm='git switch $(git_main_branch)'
alias gswd='git switch $(git_develop_branch)'
alias gts='git tag -s' alias gts='git tag -s'
alias gtv='git tag | sort -V' alias gtv='git tag | sort -V'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment