找回已删除的 .svn 文件夹
在我的服务器上,我安装了 subversion,但我不小心从服务器中删除了 .svn 文件夹 root,因此该文件夹不再受版本控制。
当我尝试进行新的结帐时,我收到错误
svn: 'repo' is already a working copy for a different URL
,这可能是因为 .svn 在子文件夹中仍然可用。
如何取回 .svn 文件夹以便可以使用 subversion?
On my server I have subversion installed, but I accidently removed the .svn folder from the
root so the folder is no more under version control.
When i try to make a new checkout, I get an error
svn: 'repo' is already a working copy for a different URL
Thats probably because .svn is still available in sub-folders.
How can I get back the .svn folder so that I have subversion available?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在新文件夹中签出您的存储库,然后将根 .svn 目录复制到旧根文件夹中,它应该可以完成这些操作。
try to checkout your repo in a fresh folder, then copy the root .svn directory into your old root folder, it should do the stuff.
您可以删除所有内容并签出新副本。或者您可以尝试让所有内容就位并以深度 1 进行结帐。请参阅 http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.checkout.html
You could delete everything and checkout a fresh copy. Or you could try letting everything in place and checkout with a depth of 1. See http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.checkout.html