How to add tags/trunk/branches to established SVN repo?

醉酒当歌 提交于 2019-12-05 18:19:15

I believe the only way to do this recursively would to use svnadmin dump, alter the dump file, then import to a clean repo.

You don't need to check out the repo to manipulate it.

svn mv svn://svn.server.com/myfolder svn://svn.server.com/trunk
svn mkdir svn://svn.server.com/tags svn://svn.server.com/branches

If immediate commits are scary, you might also be interested in svn checkout --depth='immediates' which will checkout only the files and folders in the target directory--not the contents of the folders. Check out the root with --depth=immediates, arrange directory structure as desired, commit.

There isn't a good way to accomplish the recursive change short of rewriting the entire repo's history.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!