还在为这样的git log信息头疼吗
给你这样的log信息你要不要
很简单,输入:
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
嗯。。。看起来有点长,找个省力的办法,打开终端输入:
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"
从此以后,每次想看log,只要输入:
git lg
如果你只想看发生变化的文件的log,输入:
git lg -p
爱上它了吧!