1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-08 00:10:41 +01:00

git: add aliases for git switch and restore (#8089)

This commit is contained in:
Julien Janvier
2019-08-20 12:11:38 +02:00
committed by Marc Cornellà
parent 43ed0b455e
commit de3b14cf69
2 changed files with 8 additions and 0 deletions

View File

@@ -131,7 +131,9 @@ plugins=(... git)
| grmc | git rm --cached |
| grmv | git remote rename |
| grrm | git remote remove |
| grs | git restore |
| grset | git remote set-url |
| grss | git restore --source |
| grt | cd "$(git rev-parse --show-toplevel \|\| echo .)" |
| gru | git reset -- |
| grup | git remote update |
@@ -154,6 +156,8 @@ plugins=(... git)
| gsts | git stash show --text |
| gstall | git stash --all |
| gsu | git submodule update |
| gsw | git switch |
| gswc | git switch -c |
| gts | git tag -s |
| gtv | git tag \| sort -V |
| gtl | gtl(){ git tag --sort=-v:refname -n -l ${1}* }; noglob gtl |