The git commit –amend command is a convenient way to modify the most recent commit. It lets you combine staged changes with the previous commit instead of creating an entirely new commit. It can also be used to simply edit the previous commit message without changing its snapshot.
git commit–modify命令是修改最近提交的一种方便方法。它允许您将分段的更改与以前的提交相结合,而不是创建一个全新的提交。它还可以用于简单地编辑以前的提交消息,而不更改其快照。
注意:此命令应该在commit之后,push之前使用。