# Interactively rebase the current branch onto `main`
git rebase -i main
Modify the commit dates of first commit
and second commit
but leave third commit
unchanged.
pick c40f82d first commit
exec git commit --amend --no-edit --date "Wed Jul 10 08:30:00 2024 +0900"
pick 09604ec second commit
exec git commit --amend --no-edit --date "Wed Jul 10 08:45:00 2024 +0900"
pick d624b4e third commit