GitHub Address: Https://github.com/robbyrussell/oh-my-zsh
Support for Linux and Mac.
Install command: sh-c "$ (Curl-fssl https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/ install.sh)"or Sh-c "$ (wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/ Install.sh-o-)"
It has a lot of themes and plugins, and I am using the xxf theme. You can also customize the plugin.
Git plugins work well and do a lot of alias:
|
Command |
G |
Git |
Ga |
git add |
Gaa |
git add--all |
Gapa |
git add--patch |
Gb |
Git branch |
Gba |
Git branch-a |
Gbda |
Git Branch--merged | Command Grep-ve "^ (*|\smaster\s$)" | Command xargs-n 1 git branch-d |
Gbl |
Git blame-b-W |
Gbnm |
Git branch--no-merged |
Gbr |
Git branch--remote |
Gbs |
Git bisect |
Gbsb |
git bisect bad |
Gbsg |
git bisect good |
Gbsr |
git bisect Reset |
Gbss |
git bisect start |
Gc |
Git commit-v |
Gc! |
Git commit-v--amend |
Gca |
Git commit-v-A |
Gcam |
Git commit-a-M |
gca! |
Git commit-v-a--amend |
gcan! |
git commit-v-a-s--no-edit--amend |
GCB |
Git checkout-b |
Gcf |
git config--list |
Gcl |
git clone--recursive |
Gclean |
Git clean-df |
Gcm |
git checkout Master |
gcd |
git checkout Develop |
Gcmsg |
Git commit-m |
Gco |
Git checkout |
Gcount |
Git shortlog-sn |
Gcp |
Git Cherry-pick |
Gcpa |
Git Cherry-pick--abort |
Gcpc |
Git Cherry-pick--continue |
Gcs |
Git commit-s |
Gd |
Git diff |
Gdca |
git diff--cached |
Gdt |
git diff-tree--no-commit-id--name-only-r |
Gdw |
git diff--word-diff |
Gf |
git fetch |
Gfa |
git fetch--all--prune |
Gfo |
Git fetch origin |
Gg |
git GUI Citool |
Gga |
git GUI citool--amend |
Ghh |
Git help |
Ggpull |
eg. |
Ggpur |
Ggu |
Ggpush |
Ggp |
Ggsup |
git branch--set-upstream-to = origin/$ (current_branch) |
Gpsup |
git push--set-upstream Origin $ (current_branch) |
Gignore |
Git update-index--assume-unchanged |
Gignored |
Git ls-files-v | grep "^:lower:" |
Git-svn-dcommit-push |
Git svn dcommit && git push GitHub master:svntrunk |
Gk |
\GITK--all--branches |
Gke |
\GITK--all $ (git log-g--pretty = format:%h) |
Gl |
Git pull |
Glg |
git log--stat--color |
Glgg |
git log--graph--color |
Glgga |
git log--graph--decorate--all |
Glgm |
git log--graph--max-count = 10 |
Glgp |
git log--stat--color-p |
Glo |
git log--oneline--decorate--color |
Glog |
git log--oneline--decorate--color--graph |
Glol |
git log--graph--pretty = format: '%cred%h%creset-%c (yellow)%d%creset%s%cgreen (%CR)%c (bold blue) <%an>%creset '- -abbrev-commit |
Glola |
git log--graph--pretty = format: '%cred%h%creset-%c (yellow)%d%creset%s%cgreen (%CR)%c (bold blue) <%an>%creset '- -abbrev-commit--all |
El2 |
_git_log_prettily |
gm |
git merge |
Gmom |
git merge Origin/master |
Gmt |
Git mergetool--no-prompt |
Gmtvim |
Git mergetool--no-prompt--tool = Vimdiff |
Gmum |
git merge Upstream/master |
Gp |
git push |
Gpd |
git push--dry-run |
Gpoat |
Git push origin--all && git push Origin--tags |
Gpristine |
git reset--hard && git clean-dfx |
Gpu |
git push upstream |
Gpv |
Git push-v |
Gr |
Git remote |
Gra |
git remote add |
Grb |
Git rebase |
Grba |
Git rebase--abort |
Grbc |
Git rebase--continue |
Grbi |
Git rebase-i |
Grbm |
Git rebase Master |
GRBs |
Git rebase--skip |
Grh |
git reset HEAD |
Grhh |
git reset HEAD--hard |
Grmv |
git remote rename |
Grrm |
git remote Remove |
Grset |
git remote Set-url |
Grt |
CD $ (git rev-parse--show-toplevel | | echo ".") |
Gru |
Git Reset-- |
Grup |
git Remote update |
Grv |
Git remote-v |
Gsb |
Git STATUS-SB |
Gsd |
Git svn dcommit |
Gsi |
Git submodule init |
GSPs |
Git show--pretty = short--show-signature |
Gsr |
Git svn rebase |
Gss |
Git status-s |
Gst |
git status |
Gsta |
Git stash Save |
Gstaa |
Git stash Apply |
Gstd |
git stash Drop |
Gstl |
git stash List |
Gstp |
Git stash pop |
Gstc |
Git stash Clear |
GSTs |
Git stash show--text |
Gsu |
git submodule update |
Gts |
Git tag-s |
Gunignore |
Git update-index--no-assume-unchanged |
Gunwip |
Git log-n 1 | Grep-q-C "--wip--" && git reset head~1 |
Gup |
Git pull--rebase |
Gupv |
Git pull--rebase-v |
Glum |
Git pull upstream Master |
Gvt |
Git Verify-tag |
Gwch |
Git whatchanged-p--abbrev-commit--pretty = medium |
Gwip |
Git add-a; git rm $ (git ls-files--deleted) 2>/dev/null; Git commit-m "--wip--" |
See: Https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git
And it also supports SVN.
Recommend a smart Shell:oh-my-zsh