有没有办法让git-reflog在每个条目旁显示一个日期? [英] Is there a way to cause git-reflog to show a date alongside each entry?

查看:704
本文介绍了有没有办法让git-reflog在每个条目旁显示一个日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git-reflog命令默认不会在每个条目旁边显示一个日期,这让我觉得这是一个奇怪的疏忽。我认为这会非常有用。



是否有任何命令行选项或其他调整可用于使每个reflog条目添加时显示? 联机帮助页并非即将推出...

解决方案

当手册页写入时,您可以使用 git log ,比如说 git reflog --pretty = short 或者任何其他的你喜欢的

try

  git reflog --date = iso 


The git-reflog command doesn't by default show a date alongside each entry, which strikes me as a strange oversight; I think this would be very helpful.

Are there any command-line options, or other tweaks, which can be employed to cause it to show when each reflog entry was added? The manpage isn't forthcoming...

解决方案

As the man page writes you can use the options for git log, say git reflog --pretty=short or any other as you like

try

git reflog --date=iso

这篇关于有没有办法让git-reflog在每个条目旁显示一个日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆