sde-cheatsheet

git commit - Command

Edit Commit Message

Step 1: Use the --amend option to open an interactive shell for editing commit message.

git commit --amend

Step 2: In the interactive shell, edit the commit message.