简体   繁体   中英

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?

I did a git log but that is only showing me the commits. Not when I switched branches.

Take a look at the 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:

git reflog --date=iso

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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