mdawar.dev

A blog about programming, Web development, Open Source, Linux and DevOps.

Git Change Commit Message

Modify the Last Commit Message

bash
$git commit --amend -m "New commit message"

Modify the Last Commit Message in Your Editor

bash
$git commit --amend