There was a problem with the editor ‘vi’
2017-07-13 01:15
281 查看
There was a problem with the editor ‘vi’
在项目中通过git commit -m'modify message'提交代码,发现提交的
modify message不太准确,想要修改。使用
git commit --amend命令修改
modify message,在
vim中编辑完
message之后,
w+q退出的时候报错且
message保存失败,
错误信息如下:
error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.
解决方案:
git config --global core.editor /usr/bin/vim
在次执行
git commit --amend就OK了。
参考:
http://tooky.co.uk/there-was-a-problem-with-the-editor-vi-git-on-mac-os-x/
相关文章推荐
- Fixing "There was a problem with the editor 'vi'" for Git on Mac OS X
- windows 下git commit问题("error: There was a problem with the editor 'vi'")
- Mac git amend There was a problem with the editor 'vi'.
- There was a problem with the editor 'vi' for Git on Mac OS X
- Git commit时候发生"error: There was a problem with the editor 'vi
- 修复Mac下命令行Git无法在vi中commit的错误-- here was a problem with the editor 'vi'.
- There was a problem communicating with the PayPal servers. Please try again
- Excel there was a problem sending the command to the program
- virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check
- A problem was found with the configuration of task ':app:packageDebug'
- Error:A problem was found with the configuration of task ':app:packageDebug' 问题解决
- There is a problem with the configuration server. (/usr/libexec/gconf-sanity-check-2 exite
- Error:A problem was found with the configuration of task ':app:packageBAIDURelease'.
- Error:A problem was found with the configuration of task ':app:packageRelease'.
- android studio异常Error:A problem was found with the configuration of task ':app:zipalignDebug'.
- Error:A problem was found with the configuration of task ':app:packageRelease'. > File 'F:\AndroidSt
- Excel 2010出现there was a problem sending the command to the program解决
- Excel- There was a problem sending the command to the program
- 集成google+1组件,提示There was a temporary problem with your +1 Please try again later
- Error:A problem was found with the configuration of task ':app:packageDebug'