SVN已经checkout下来的代码提交到一个新的分支上面
发布于 2 个月前 作者 qjzd 224 次浏览 来自 码农

You should create a branch from a known sourceURL (this would be your ‘development line’ you mentioned in the question) first:

svn copy sourceURL branchURL

Then, switch to that branch:

svn switch branchURL

And commit your changes:

svn commit

提示如果

执行svn copy报错

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

解决方案 添加 环境变量

SVN_EDITOR =  C:\Windows\System32\notepad.exe

参考

https://stackoverflow.com/questions/2783816/commit-changes-to-a-different-branch-than-the-currently-checked-out-branch-with

回到顶部