At times I forget to commit my changes until days later. I prefer these commits show an accurate commit date of when the work was actually done.
You can change the commit date of any git commit with the --date
flag.
# Change commit date to July 22, 2021.
git commit --date="2021-07-22" -m "add tracking code to website"