Backdate Commits in Git

January 18, 2019

Sometimes you need to backdate commits for numerous reasons such as keeping your records straight or if the date on your device is wrong.

There are multiple ways to backdate commits in Github, here's the easiest way:

git commit --date="5 days ago" -m "YOUR COMMIT MESSAGE"