git常用别名

发布时间 2023-05-16 20:35:31作者: wiggin

git config --global alias.br branch

git config --global alias.ci commit

git config --global alias.co checkout

git config --global alias.unstage 'reset HEAD'

git config --global.st status

git config --global.last 'log -l'

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" ☆