zsh git 插件内置别名一览表

一个14岁孩子经历的的任何事,都会让他铭记一生。—–《lolita》

aliasfull command
ggit
gagit add
gaagit add —all
gapagit add —patch
gaugit add —update
gbgit branch
gbagit branch -a
gbdgit branch -d
gbdagit branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d
gblgit blame -b -w
gbnmgit branch --no-merged
gbrgit branch —remote
gbsgit bisect
gbsbgit bisect bad
gbsggit bisect good
gbsrgit bisect reset
gbssgit bisect start
gcgit commit -v
gc!git commit -v —amend
gcn!git commit -v --no-edit —amend
gcagit commit -v -a
gca!git commit -v -a —amend
gcan!git commit -v -a --no-edit —amend
gcans!git commit -v -a -s --no-edit —amend
gcamgit commit -a -m
gcsmgit commit -s -m
gcbgit checkout -b
gcfgit config —list
gclgit clone —recursive
gcleangit clean -fd
gpristinegit reset --hard && git clean -dfx
gcmgit checkout master
gcdgit checkout develop
gcmsggit commit -m
gcogit checkout
gcountgit shortlog -sn
gcpgit cherry-pick
gcpagit cherry-pick —abort
gcpcgit cherry-pick —continue
gcsgit commit -S
gdgit diff
gdcagit diff —cached
gdctgit describe --tags git rev-list --tags --max-count=1
gdtgit diff-tree --no-commit-id --name-only -r
gdwgit diff --word-diff
gfgit fetch
gfagit fetch --all —prune
gfogit fetch origin
gggit gui citool
ggagit gui citool —amend
ggpurggu
ggpullgit pull origin $(git_current_branch)
ggpushgit push origin $(git_current_branch)
ggsupgit branch --set-upstream-to=origin/$(git_current_branch)
gpsupgit push --set-upstream origin $(git_current_branch)
ghhgit help
gignoregit update-index --assume-unchanged
gignoredgit ls-files -v | grep "^[[:lower:]]"
git-svn-dcommit-pushgit-svn-dcommit-push git svn dcommit && git push github master:svntrunk
gk\gitk --all —branches
gke\gitk --all $(git log -g --pretty=%h)
glgit pull
glggit log —stat
glgpgit log --stat -p
glgggit log —graph
glggagit log --graph --decorate —all
glgmgit log --graph --max-count=10
glogit log --oneline —decorate
glolgit log --graph --pretty%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset --abbrev-commit
glolagit log --graph --pretty%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset--abbrev-commit —all
gloggit log --oneline --decorate —graph
glogagit log --oneline --decorate --graph —all
glp_git_log_prettily
gmgit merge
gmomgit merge origin/master
gmtgit mergetool --no-prompt
gmtvimgit mergetool --no-prompt --tool=vimdiff
gmumgit merge upstream/master
gpgit push
gpdgit push --dry-run
gpoatgit push origin --all && git push origin —tags
gpugit push upstream
gpvgit push -v
grgit remote
gragit remote add
grbgit rebase
grbagit rebase —abort
grbcgit rebase —continue
grbigit rebase -i
grbmgit rebase master
grbsgit rebase —skip
grhgit reset HEAD
grhhgit reset HEAD —hard
grmvgit remote rename
grrmgit remote remove
grsetgit remote set-url
grtcd $(git rev-parse --show-toplevel || echo ".")
grugit reset —
grupgit remote update
grvgit remote -v
gsbgit status -sb
gsdgit svn dcommit
gsigit submodule init
gspsgit show --pretty=short --show-signature
gsrgit svn rebase
gssgit status -s
gstgit status
gstagit stash save
gstaagit stash apply
gstcgit stash clear
gstdgit stash drop
gstlgit stash list
gstpgit stash pop
gstsgit stash show —text
gsugit submodule update
gtsgit tag -s
gtvgit tag | sort -V
gunignoregit update-index --no-assume-unchanged
gunwipgit log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1
gupgit pull —rebase
gupvgit pull –rebase -v`
glumgit pull upstream master
gwchgit whatchanged -p --abbrev-commit --pretty=medium
gwipgit add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus