How do I squash commits in git with a commit date that is not in the past?

Hack: You can use

git commit --amend --reset-author

The git commit man page says that this “also renews the author timestamp”. You don’t have to make any changes to the commit (I tried it locally), and it will update the timestamp to the current time. Definitely kind of an abuse, but it seems to work.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)