Skip to content

Commit timestamps in GitHub don't match repo #22695

Discussion options

You must be logged in to vote

I didn’t realise there was a distinction between the ‘author date’ and ‘commit date’. It does seem odd that GitHub would choose to show a different date from what’s in the logs, but I’m sure some thought went into that decision, and I know a lot of people are more comfortable with history being rewritten than I. 🙂

I fixed it with these commands:

git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
git push -f

GitHub doesn’t seem bothered by dates older than it is, either. 😉

Thanks for your help!

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@MarcellHarmaci
Comment options

@juliamcneill
Comment options

@BretHudson
Comment options

@ammarshah
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants