操作:
在git config文件里面设置别名。
git config --global alias.lg "log --graph --all --pretty=format:'%Cyellow%h%Creset -%C(red)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
然后通过命令
git lg
来列出分支图

引用:
https://blog.csdn.net/alexwang1983/article/details/18742751