Is it possible that you did a git rebase
at some point in time?
Git commits have two dates attached to them, GIT_COMMITTER_DATE
and GIT_AUTHOR_DATE
. They usually have the same value. But some commands like git rebase
can change the commit date.
To view both dates you can run git log --pretty=fuller
.
In GitHub's network uses the GIT_COMMITTER_DATE
to display the project's network in a timeline.
If you want to revert the commit dates back to the author dates, you can try using these approaches described in another SO answer.
I'd like to add another approach if you've already screwed up but don't want to iterate through the whole history: git rebase --committer-date-is-author-date <base_branch>
This way, git will reset the commit date only for the commits applied upon (which is probably the same branch name you used when you screwed up). - speakman