Git Log Relative Committer Date 📝
Git log format strings are endlessly interesting to me. There are so many different ways to display the data.
Today I learned a new one,
%cr. This formats your commit from the committer date, relative to now. After pulling from the remote, use it like this to see how long ago the latest commmit was committed:
$ git log -1 --format=%cr 8 hours ago
I use this command when surveying a Github organization, or an old computer with lots of dusty projects laying around.Tweet