I'm looking for a way to see the date a commit was pushed to a remote repository. Using git log you can see both the author date and the commit date; however, neither of these dates tell you when the developer actually got around to pushing the change up to the main remote repository.
At first I thought what I was looking for was simply not available in git, but then yesterday I discovered that specifying a date range in the log command actually filtered the commits by the day they were pushed to the main remote repo. Here is an example:
Let's say I authored and committed a patch to my local master branch on July 1st 2010. But now it is July 28th and I finally get around to doing a push up to the remote master repo.
Then I do a 'Fetch' to ensure that my local origin/master is up to date with the remote master repo.
I look at the log for origin/master by running:
git log --format="format:%H %nAuthor Date: %ad %nCommit Date: %cd %n" origin/master
The results of the logs show that this was authored and committed on July 1st 2010 even though it was just pushed to the remote repo.
So I specify a date range (since..until)
git log --format="format:%H %nAuthor Date: %ad %nCommit Date: %cd %n" origin/master@{"1 hour ago"}..origin/master
and to my amazement git knows that this was pushed to the remote repository within the past hour even though it was authored and committed weeks ago.
So it seems that git retains the date that commits are pushed to a repo, my question is whether there is any way to expose that date so I can see (for example) the five most recent pushes to the remote repository?