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.
Nesta página do site você pode assistir ao vídeo on-line Modify Git Commit Dates (Author & Committer Dates Explained) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Fadi G69 Games | Development 01 Janeiro 1970, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 99 vezes e gostou 4 espectadores. Boa visualização!