DEV Community

Discussion on: Commit with a Past Date and Time in Git

Collapse
 
gianpiero_errigo profile image
Gianpiero Errigo

Beware that --amend will not modify last commit, it will replace it with a new one, changing repo history.
That could be tricky if someone already cloned the branch.

Collapse
 
pradumnasaraf profile image
Pradumna Saraf

Yes. Thank you.

Collapse
 
gadrawingz profile image
Gad Iradufasha

Thanks for this warning. Someone can make some mistakes!