How to commit amend only works on previous/ last commit please find below screenshot to see how its done Note: 8th step will open in your default editor, change necessary things (optional)