刚刚写代码,git提交时 git commit -m"错误文字不小心提交了" 若没有push 只需要再执行 这句即可 git commit --amend -m"这才是要提交的文字" 然后再git log查看是否改过来