Skip to content
目录

git缩写命令

AliasCommand
ggit
gagit add
gaagit add --all
gapagit add --patch
gaugit add --update
gbgit branch
gbagit branch -a
gbdagit branch --merged
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
gcagit commit -v -a
gcamgit commit -a -m
gca!git commit -v -a --amend
gcan!git commit -v -a -s --no-edit --amend
gcbgit checkout -b
gcfgit config --list
gclgit clone --recursive
gcleangit clean -df
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
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
ggfgit push --force origin $(current_branch)
ghhgit help
ggpullggl
ggpurggu
ggpushggp
ggsupgit branch --set-upstream-to = origin/$(current_branch)
gpsupgit push --set-upstream origin $(current_branch)
gignoregit update-index --assume-unchanged
gignoredgit ls-files -v
glgit pull
glggit log --stat --color
glgggit log --graph --color
glggagit log --graph --decorate --all
glgmgit log --graph --max-count = 10
glgpgit log --stat --color -p
glogit log --oneline --decorate --color
gloggit log --oneline --decorate --color --graph
glolgit log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
glolagit log --graph --pretty = format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --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
gpristinegit reset --hard && git clean -dfx
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
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
gstdgit stash drop
gstlgit stash list
gstpgit stash pop
gstcgit stash clear
gstsgit stash show --text
gsugit submodule update
gtsgit tag -s
gunignoregit update-index --no-assume-unchanged
gunwipgit log -n 1
gupgit pull --rebase
gupvgit pull --rebase -v
glumgit pull upstream master
gvtgit verify-tag
gwchgit whatchanged -p --abbrev-commit --pretty = medium
gwipgit add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"