I have rebased my commits to change their dates, and right now it is showing the correct dates locally. Then, I decided to delete the remote repository and publish it again from the beginning with the correct dates. But, I was surprised to see that all dates of the commits, I have rebased, having the same date of the rebasing time!
Here is a screenshot of the commits locally:
And you can see the commits history on my public repo here: https://github.com/Mohammed-Sharaf-Eddeen/epl-dashboard/commits/master
CodePudding user response:
Commits have two dates, and GitHub is showing you different ones than your GUI picked.
Ordinary git commit
and git merge
set both the author and committer dates to right now.
git rebase
and kin set the committer date to right now (and you), leaving the author date (and the author name/email) as they are in the original commits.
GitHub's showing you the committer date, your GUI is showing you the author date.