DT - 插件,工具,快捷键

2022-05-31  本文已影响0人  Yong_bcf4
KeyboardReferenceSheet.png
  1. g - git

  2. gst - git status

  3. gl - git pull

  4. gup - git pull --rebase

  5. gp - git push

  6. gd - git diff

  7. gcmsg - git commit -m

  8. gco - git checkout

  9. gcm - git checkout master

  10. grb - git rebase

  11. gba - git branch -a

  12. gcp - git cherry-pick

  13. glg - git log --stat --max-count=10

  14. glgg - git log --graph --max-count=10

  15. glgga - git log --graph --decorate --all

  16. glo - git log --oneline --decorate --color

  17. glog - git log --oneline --decorate --color --graph

  18. gss - git status -s

  19. ga - git add

  20. gm - git merge

  21. grh - git reset HEAD

  22. grhh - git reset HEAD --hard

  23. gclean - git reset --hard && git clean -dfx

  24. gsta - git stash

  25. gstp - git stash pop

  26. gstd - git stash drop

更多缩写链接: https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/git/git.plugin.zsh

上一篇 下一篇

猜你喜欢

热点阅读