日記
最近毎日アルゴリズムの問題を解いて記録しているのだが、コミットを忘れていたので、日時の書き換えをやった。
Git のcommit日時の書き換え
現状確認
git log --pretty=fuller
AuthorDate 書き換え
git commit --amend --date="Sun Jan 16 21:35:50 2022 +0900"
CommitDate 書き換え
git rebase HEAD~1 --committer-date-is-author-date