Git显示漂亮日志的小技巧
原文:http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html (墙)
Git的传统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 --"
然后,我们就可以使用这样的短命令了:
git lg
如果你想看看git log –pretty=format的参数,你可以看看这篇文章。
转载于酷壳CoolShell 无删改 仅以此纪念陈皓(左耳朵耗子)
2023 年,全年收入情况如下:收入结构如下:1. 教师每月工资 2200 ,外加延…
用的威联通,没有很好的同步到云的方式,自带的备份/同步软件国内能用的几乎只有百度网盘。 通过其他方式,比如套娃 webdav ,会因为请求太频繁导致报错 rustic 通过…
下面这个链接是Linux分发包Ubuntu的关于Telnet命令的Man Page, http://manpages.ubuntu.com/manpages/karmic/ma…