You can rewrite commits using either git-filter-branch or git-filter-repo but the latter one is recommended. See why.
There are two types of dates in a git commit: AuthorDate
and CommitDate
.
When you run git log
, the date you see with every commit is the AuthorDate
while GitHub repository shows the CommitDate
.