简体   繁体   English

我如何获得发出git checkout命令的时间?

[英]How do I get the time of when a git checkout command was issued?

Is there a way to find what time a git checkout command was issued? 有没有办法找到什么时间发出git checkout命令?

I did a git log but that is only showing me the commits. 我做了一个git日志,但这只向我显示了提交。 Not when I switched branches. 当我切换分支时没有。

Take a look at the reflog : 看看reflog

git reflog --pretty

Actually, it appears that the time shown via reflog --pretty is the time of the commit, but this will get you what I think you're looking for: 实际上,似乎通过reflog --pretty显示的时间是提交的时间,但这将为您带来我想找的东西:

git reflog --date=iso

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM