git config --global core.editor “vim” 当git commit -m “”信息“ 提交信息错误重新修改使用 运行以下命令:git commit --amend --edit。