【Git】直前のコミットのメッセージを編集

git commit --amend -m "編集後のコミットメッセージ"

[https://zenn.dev/dev63/articles/a0a1ea1fc89e8e:embed:cite]