SVN 命令提交错误

来源:互联网 发布:淘宝上的好评怎么删除 编辑:程序博客网 时间:2024/06/05 22:56
 
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: 提交失败(细节如下):
svn: 无法使用外部编辑器获得日志信息;考虑设置环境变量 $SVN_EDITOR,或者使用 --message (-m) 或 --file (-F) 选项
svn: 没有设置 SVN_EDITOR,VISUAL 或 EDITOR 环境变量,运行时的配置参数中也没有 “editor-cmd” 选项
 
 
解决方法:
1 在提交命令中加入-m参数,用man指令查询具体方法
2 设置SVN_EDITOR环境变量:
       SVN_EDITOR环境变量是制定一个日志编辑器,设置其值为任一一个编辑器即可。
      ex: export  SVN_EDITOR=vi
  
 
原创粉丝点击