git 配置 ,简化指令
git config -l
-
git status --> git st
git config --global alias.st status -
git checkout --> git co
git config --global alias.co checkout -
git commit --> git cm
git config --global alias.cm commit -
git branch --> git br
config --global alias.br branch -
git last --> git log -1
git config --global alias.last 'log -1' -
git stash --> git ss
git config --global alias.ss stash -
git rebase —> git rb
git config —global alias.rb rebase -
git log --> git lg
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"












网友评论