Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
77b409d5
Unverified
Commit
77b409d5
authored
May 22, 2020
by
larumbe
Committed by
GitHub
May 22, 2020
Browse files
git: add convenience aliases for `git apply` and `git am` (#8563)
parent
a25efd1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
plugins/git/README.md
View file @
77b409d5
...
...
@@ -19,6 +19,7 @@ plugins=(... git)
| gau | git add --update |
| gav | git add --verbose |
| gap | git apply |
| gapt | git apply --3way |
| gb | git branch |
| gba | git branch -a |
| gbd | git branch -d |
...
...
@@ -171,6 +172,11 @@ plugins=(... git)
| glum | git pull upstream master |
| gwch | git whatchanged -p --abbrev-commit --pretty=medium |
| gwip | git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]" |
| gam | git am |
| gamc | git am --continue |
| gams | git am --skip |
| gama | git am --abort |
| gamscp | git am --show-current-patch |
### Deprecated aliases
...
...
plugins/git/git.plugin.zsh
View file @
77b409d5
...
...
@@ -38,6 +38,7 @@ alias gapa='git add --patch'
alias
gau
=
'git add --update'
alias
gav
=
'git add --verbose'
alias
gap
=
'git apply'
alias
gapt
=
'git apply --3way'
alias
gb
=
'git branch'
alias
gba
=
'git branch -a'
...
...
@@ -257,6 +258,12 @@ alias glum='git pull upstream master'
alias
gwch
=
'git whatchanged -p --abbrev-commit --pretty=medium'
alias
gwip
=
'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"'
alias
gam
=
'git am'
alias
gamc
=
'git am --continue'
alias
gams
=
'git am --skip'
alias
gama
=
'git am --abort'
alias
gamscp
=
'git am --show-current-patch'
function
grename
()
{
if
[[
-z
"
$1
"
||
-z
"
$2
"
]]
;
then
echo
"Usage:
$0
old_branch new_branch"
...
...
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