git commit --amend

Category: Git - Core

git commit --amend

Amend the most recent commit (message or content)

Opens an editor to modify the most recent commit — change its message or add more staged changes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.