mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Avoid showing 'git rm' usage when using gwip alias
This commit is contained in:
parent
b167029a28
commit
e2595c5ff5
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ compdef _git ggpnp=git-checkout
|
||||||
# Work In Progress (wip)
|
# Work In Progress (wip)
|
||||||
# These features allow to pause a branch development and switch to another one
|
# These features allow to pause a branch development and switch to another one
|
||||||
# When you want to go back to work, just unwip it
|
# When you want to go back to work, just unwip it
|
||||||
alias gwip="git add -A; git ls-files --deleted -z | xargs ${XARGS_OPTS} -0 git rm; git commit -m \"--wip--\""
|
alias gwip="git add -A; git ls-files --deleted -z | xargs ${XARGS_OPTS} -0 git rm 2>/dev/null; git commit -m \"--wip--\""
|
||||||
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
|
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
|
||||||
# Ignore changes to file
|
# Ignore changes to file
|
||||||
alias gignore='git update-index --assume-unchanged'
|
alias gignore='git update-index --assume-unchanged'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue