Git 2 · Committing
Change the last commit message
Replace the message of the most recent commit.
git commit --amend -m "New message"
Caution: This rewrites the commit. Avoid it once the commit has been pushed and shared.
Git 2 · Committing
Replace the message of the most recent commit.
git commit --amend -m "New message"
Caution: This rewrites the commit. Avoid it once the commit has been pushed and shared.
Was this page helpful?