是否可以在git reflog中更改散列的颜色?它现在使用的版本很难读懂。我在我的.gitconfig文件中尝试了以下内容:
[color "reflog"]
hash = red我还尝试了ref和reference。我在Ubuntu上使用的是git 2.5.1。
发布于 2015-09-05 02:31:34
您可以使用--pretty来自定义输出。要将散列更改为红色,请执行以下操作:
git reflog --pretty='format:%C(red)%h%Creset %gD %gs'或者包括分支机构名称、相对变更日期和作者
git reflog --pretty='format:%C(red)%h%Creset %gD: %gs %C(yellow)%d%Creset %Cgreen(%ar) %C(bold blue)<%an>%Creset'有关更多格式选项,请参阅git help log。
发布于 2015-09-05 02:31:53
这里没有很好的答案,但是it doesn't appear as though you can configure the color of git-reflog。
https://stackoverflow.com/questions/32404349
复制相似问题