您的位置:首页 > Web前端

svn commit failed: Could not use external editor to fetch log message

2015-09-07 15:57 435 查看
svn commit时出错

svn: Commit failed (details follow):

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 are set, and no 'editor-cmd' run-time configuration option was found

原因:svn拿不到log message

解决方法2种

1:附上参数 --message (-m) 或 --file (-F)即可

比如:svn ci -m "fix bugs in xxx.cpp"

或者将log message写到指定文件中,如message.log,然后svn ci -F message.log

2:设置SVN_EDITOR

exprot SVN_EDITOR=vim

或在~/.bash_profile中添加一行:export SVN_EDITOR=vim
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: