🔀Git Commit Amend
Also known as git commit --amend, Amend a Commit, Amend Commit
Fixing your last commit before you share it. You can change its message or its files.
Think of it like
Think of it like fixing a letter before you post it. You change a word and seal it again.
Example
Why it matters
Definition
Example code
console
$ git commit --amend -m "Fix the price on the order page"
[main 7b8c9d0] Fix the price on the order page
Date: Mon Nov 16 10:12:03 2026 +0100
1 file changed, 2 insertions(+), 1 deletion(-)