```bash $ git rebase -i HEAD~N # rebaseの画面 pick→editに変える $ git commit --amend -m "正しいコミットメッセージに変える" $ git rebase --continue ```