mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
plugins/git: missing compdefs and new aliases
This commit is contained in:
parent
93d6e1f3eb
commit
cd59e6c2b7
1 changed files with 13 additions and 1 deletions
|
|
@ -12,19 +12,25 @@ compdef _git gup=git-fetch
|
|||
alias gp='git push'
|
||||
compdef _git gp=git-push
|
||||
alias gd='git diff'
|
||||
compdef _git gd=git-diff
|
||||
gdv() { git diff -w "$@" | view - }
|
||||
compdef _git gdv=git-diff
|
||||
alias gdc='git diff --cached'
|
||||
compdef _git gdc=git-diff
|
||||
alias gc='git commit -v'
|
||||
compdef _git gc=git-commit
|
||||
alias gc!='git commit -v --amend'
|
||||
compdef _git gc!=git-commit
|
||||
alias gca='git commit -v -a'
|
||||
compdef _git gc=git-commit
|
||||
compdef _git gca=git-commit
|
||||
alias gca!='git commit -v -a --amend'
|
||||
compdef _git gca!=git-commit
|
||||
alias gco='git checkout'
|
||||
compdef _git gco=git-checkout
|
||||
alias gcm='git checkout master'
|
||||
compdef _git gcm=git-checkout
|
||||
alias grm='git rebase master'
|
||||
compdef _git grm=git-rebase
|
||||
alias gr='git remote'
|
||||
compdef _git gr=git-remote
|
||||
alias grv='git remote -v'
|
||||
|
|
@ -44,6 +50,7 @@ compdef _git gba=git-branch
|
|||
alias gcount='git shortlog -sn'
|
||||
compdef gcount=git
|
||||
alias gcl='git config --list'
|
||||
compdef _git gcl=git-config
|
||||
alias gcp='git cherry-pick'
|
||||
compdef _git gcp=git-cherry-pick
|
||||
alias glg='git log --stat --max-count=5'
|
||||
|
|
@ -61,10 +68,15 @@ compdef _git ga=git-add
|
|||
alias gm='git merge'
|
||||
compdef _git gm=git-merge
|
||||
alias grh='git reset HEAD'
|
||||
compdef _git grh=git-reset
|
||||
alias grhh='git reset HEAD --hard'
|
||||
compdef _git grhh=git-reset
|
||||
alias gwc='git whatchanged -p --abbrev-commit --pretty=medium'
|
||||
compdef _git gwc=git-whatchanged
|
||||
alias gf='git ls-files | grep'
|
||||
compdef _git gf=git-ls-files
|
||||
alias gpoat='git push origin --all && git push origin --tags'
|
||||
compdef _git gpoat=git-push
|
||||
|
||||
# Will cd into the top of the current repository
|
||||
# or submodule.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue