Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
de3b14cf
Commit
de3b14cf
authored
Aug 20, 2019
by
Julien Janvier
Committed by
Marc Cornellà
Aug 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git: add aliases for git switch and restore (#8089)
parent
43ed0b45
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
README.md
plugins/git/README.md
+4
-0
git.plugin.zsh
plugins/git/git.plugin.zsh
+4
-0
No files found.
plugins/git/README.md
View file @
de3b14cf
...
@@ -131,7 +131,9 @@ plugins=(... git)
...
@@ -131,7 +131,9 @@ plugins=(... git)
| grmc | git rm --cached |
| grmc | git rm --cached |
| grmv | git remote rename |
| grmv | git remote rename |
| grrm | git remote remove |
| grrm | git remote remove |
| grs | git restore |
| grset | git remote set-url |
| grset | git remote set-url |
| grss | git restore --source |
| grt | cd "$(git rev-parse --show-toplevel
\|\|
echo .)" |
| grt | cd "$(git rev-parse --show-toplevel
\|\|
echo .)" |
| gru | git reset -- |
| gru | git reset -- |
| grup | git remote update |
| grup | git remote update |
...
@@ -154,6 +156,8 @@ plugins=(... git)
...
@@ -154,6 +156,8 @@ plugins=(... git)
| gsts | git stash show --text |
| gsts | git stash show --text |
| gstall | git stash --all |
| gstall | git stash --all |
| gsu | git submodule update |
| gsu | git submodule update |
| gsw | git switch |
| gswc | git switch -c |
| 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 |
...
...
plugins/git/git.plugin.zsh
View file @
de3b14cf
...
@@ -207,7 +207,9 @@ alias grm='git rm'
...
@@ -207,7 +207,9 @@ alias grm='git rm'
alias
grmc
=
'git rm --cached'
alias
grmc
=
'git rm --cached'
alias
grmv
=
'git remote rename'
alias
grmv
=
'git remote rename'
alias
grrm
=
'git remote remove'
alias
grrm
=
'git remote remove'
alias
grs
=
'git restore'
alias
grset
=
'git remote set-url'
alias
grset
=
'git remote set-url'
alias
grss
=
'git restore --source'
alias
grt
=
'cd "$(git rev-parse --show-toplevel || echo .)"'
alias
grt
=
'cd "$(git rev-parse --show-toplevel || echo .)"'
alias
gru
=
'git reset --'
alias
gru
=
'git reset --'
alias
grup
=
'git remote update'
alias
grup
=
'git remote update'
...
@@ -236,6 +238,8 @@ alias gstp='git stash pop'
...
@@ -236,6 +238,8 @@ alias gstp='git stash pop'
alias
gsts
=
'git stash show --text'
alias
gsts
=
'git stash show --text'
alias
gstall
=
'git stash --all'
alias
gstall
=
'git stash --all'
alias
gsu
=
'git submodule update'
alias
gsu
=
'git submodule update'
alias
gsw
=
'git switch'
alias
gswc
=
'git switch -c'
alias
gts
=
'git tag -s'
alias
gts
=
'git tag -s'
alias
gtv
=
'git tag | sort -V'
alias
gtv
=
'git tag | sort -V'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment