Rewrites the most recent commit with a corrected author line, leaving the message untouched. Useful after spotting a wrong identity or email in the last commit. Amending changes the commit hash, so avoid it once the commit has been pushed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.