On the command line, navigate to the repository that contains the commit you want to amend. · Type git commit --amend and press Enter. · In your text editor, edit ... ... <看更多>
If you are using the Git GUI tool, there is a button named Amend last commit. Click on that button and then it will display your last commit files and message. ... <看更多>
If you want to change the last 3 commit messages, or any of the commit messages up to that point, supply 'HEAD~3' to the git rebase -i command. $ git rebase -i ... ... <看更多>
--amend opens up the interactive commit message environment you are used to from git commit . Change the message as you see fit; you'll see ... ... <看更多>