Git: Amend Commit Dates in Interactive Rebase
One liner:
Explanation:
git rebase -i HEAD~8– Start an interactive rebase for the last 8 commits.git commit --amend --no-edit --date="$(date)"– Update the commit date to the current time without modifying the commit message.git rebase --continue– Continue the rebase process after amending the commit.
Useful for keeping commit timestamps updated while rebasing. 🚀