在mac中,如果使用 git commit –amend,会出现如下错误:

error: There was a problem with the editor ‘vi’.
Please supply the message using either -m or -F option.

原因是vi有问题,需要为 git 换一个默认的编辑器,比如 vim,如下进行配置即正常了。

git config --global core.editor "vim"

相关文章:

  • 2021-10-08
  • 2021-06-11
  • 2021-07-07
  • 2021-12-07
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2021-08-23
  • 2022-12-23
  • 2021-08-06
  • 2021-06-25
  • 2021-08-03
  • 2022-12-23
相关资源
相似解决方案