git commit --amend --reset-author

455 阅读1分钟

截屏2021-07-17 23.48.02.png

先声明:我的Mac 刚抹完盘,就运行 git cofing --global 那两句命令

终端里提示的 git config --global user.namegit config --global user.email 之后,当我运行完,去运行 git commit --amend --reset-author 不是报个错嘛!

我直接想起 方方老师说的话 怎么查资料,直接copy git commit --amend --reset-author 这句命令 后面 加上 git 搜索到 git,往下翻看到 编辑器 几个字,当时就想到 是用 vim 打开的,再用 vi 打开,直接保存退出,就好了,之后也不会报错了。