How to update your last commit's date?
Published: (February 18, 2026 at 09:50 AM EST)
1 min read
Source: Dev.to
Source: Dev.to
Updating the author date
Change the author date only
git commit --amend --no-edit --date="now"
Reset author information (name/email) and date
git commit --amend --no-edit --reset-author
--reset-authorresets both the author date and the author identity.--date="now"only changes the date.