且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

重新创建 svn 存储库

更新时间:2023-01-22 14:52:16

  1. 存储在旧存储库中的开发历史已丢失.

  1. The development history that was stored in your old repository is lost.

您可以使用工作副本的当前内容创建一个新的存储库,但这将是一个真正的存储库.你不能switch到它,即使是--relocate也不能.

You can create a new repository with the current contents of your working copy, but this will truly be a new repository. You can't switch to it, not even with --relocate.

如果您已经设法将工作副本的内容导入到新存储库中,则只需将其签出即可.如果不是:

If you've already managed to import the contents of your working copy into the new repository, you just need to check it out. If not:

svn export WORKING_COPY WORKING_COPY.export  # the exported copy will contain no .svn dirs
svn import WORKINGCOPY.export svn://example.com/new-repository
svn checkout svn://example.com/new-repository NEW_WORKING_COPY