使用Zsh自带Git插件

本文最后更新于:2022年3月26日 下午

Git plugin in Zsh

Of course you can use plugins = (git) in ~/.zshrc to activate the git plugin in your zsh. But do you really know how to use it elegantly?

Ok, Don’t worry, here are some abbressions for git, which are frequently used during developing

  • g: git

  • gcl: git clone

  • gst: git status

  • ga: git add

  • gc: git commit

  • gp: git push

  • gb: git branch

  • gco: git checkout

  • gr: git remote

  • gm: git merge


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!