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

在将系统从10.8升级至10.9后,遇到使用SVN进行分支操作时出现错误提示。问题根源在于未正确设置SVN编辑器环境变量。通过在`/etc/bashrc`文件中加入`export SVN_EDITOR=vim`命令并运行`source /etc/bashrc`以使配置立即生效,成功解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 
分类: 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值