Modify Git Commit Dates (Author & Committer Dates Explained)

Published: 01 January 1970
on channel: Fadi G69 Games | Development
99
4

In this tutorial, I’ll show you how to change Git commit dates (both author and committer dates) step by step.
This can be useful if you need to fix incorrect commit timestamps, backdate commits for project alignment, or adjust your Git history for clarity.

We’ll cover:
✔️ Changing the date of the most recent commit
✔️ Backdating commits using --amend
✔️ Rewriting multiple commit dates with interactive rebase
✔️ Important warnings before rewriting Git history

Commands used in this video:
git commit --amend --date="YYYY-MM-DD HH:MM:SS"
GIT_AUTHOR_DATE="..." GIT_COMMITTER_DATE="..." git commit --amend --no-edit
git rebase -i HEAD~n

⚠️ Note: Rewriting Git history should only be done on local or private branches. Avoid doing this on shared branches.

👉 Subscribe for more Git & Developer tutorials.


On this page of the site you can watch the video online Modify Git Commit Dates (Author & Committer Dates Explained) with a duration of hours minute second in good quality, which was uploaded by the user Fadi G69 Games | Development 01 January 1970, share the link with friends and acquaintances, this video has already been watched 99 times on youtube and it was liked by 4 viewers. Enjoy your viewing!