对于那些在windows下用习惯了工具提交的朋友们来说,可能用命令行提交会稍微有点不习惯,比如可能会报如下错误:
xinguimengdeMacBook-Pro:man_vanthink xinguimeng$ svn ci application/library/BasicModels.php
svn: E205007: Commit failed (details follow):
svn: E205007: 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: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
xinguimengdeMacBook-Pro:man_vanthink xinguimeng$
虽然我们能够很轻松的看懂上面什么意思,难道我们必须要修改SVN_EDITOR这个环境变量,然后xxx吗?其实我们只需要在提交的时候用-m添加提交备注就可以了,具体操作范例如下:
xinguimengdeMacBook-Pro:man_vanthink xinguimeng$ svn ci application/library/BasicModels.php -m "demo"
Sending application/library/BasicModels.php
Transmitting file data .
Committed revision 1136.