Git: Amend Commit Dates in Interactive Rebase

One liner:

Explanation:

  1. git rebase -i HEAD~8 – Start an interactive rebase for the last 8 commits.
  2. git commit --amend --no-edit --date="$(date)" – Update the commit date to the current time without modifying the commit message.
  3. git rebase --continue – Continue the rebase process after amending the commit.

Useful for keeping commit timestamps updated while rebasing. 🚀