I accidentally committed something with
git with the wrong timezone set in my VM. How to fix it? The help message for
git commit says:
--date <date> override date for commit
OK that’s great, but I don’t really want to figure out the input format for feeding in a date. I blindly tried:
git commit --amend --date now
And blindly typing “now” actually worked as intended. git is smart. Thanks git developers!