osx – 使用vim git提交消息在更新janus后损坏
发布时间:2020-12-15 16:15:43 所属栏目:安全 来源:网络整理
导读:更新janus vim分布后,似乎有一个问题使用vim提交消息。最好的例子是当做一个git pull来得到别人的改变。显示vim编辑器,我键入我的提交消息,我输入:wq但是而不是提交工作,我得到以下错误消息: error: There was a problem with the editor 'vi'.Not com
更新janus vim分布后,似乎有一个问题使用vim提交消息。最好的例子是当做一个git pull来得到别人的改变。显示vim编辑器,我键入我的提交消息,我输入:wq但是而不是提交工作,我得到以下错误消息:
error: There was a problem with the editor 'vi'. Not committing merge; use 'git commit' to complete the merge. 然后我必须手动提交:( 我如何让git与vim玩得很好?
经过一番谷歌搜索,结果是,答案是运行以??下:
git config --global core.editor /usr/bin/vim (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |