svn: Could not use external editor to fetch log message; 问题解决

 
分类: iPhone开发   805人阅读  评论(0)  收藏  举报

把系统换成了10.9之后,各种问题。 用svn做个分支,提示下面的错误:

svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found

问题原因是: 

没有设置svn编辑器的环境变量,主要是import、commit中填写comment要用

在 终端中 sudo vim /etc/bashrc 打开文件

 

加入:export SVN_EDITOR=vim

 

如果,保存的时候,无法保存。wq! 强制保存退出

还有:

编辑完以后一般需要让配置文件立即生效,可执行命令:
source  /etc/bashrc

猜你喜欢

转载自omyyal.iteye.com/blog/2077711