开发者

How do I restore a repo when I only have the source folder?

开发者 https://www.devze.com 2023-01-07 14:37 出处:网络
There was an a开发者_JS百科ccident and I lost my SVN repo directory, though my source folder and all the .svn folders within it are fine. How would I restore the repo using the source folder?

There was an a开发者_JS百科ccident and I lost my SVN repo directory, though my source folder and all the .svn folders within it are fine. How would I restore the repo using the source folder?

I ran $ svnadmin create /path/to/repo - now what?

Thanks


How would I restore the repo using the source folder?

You can't. SVN keeps the history only in the repository, your working folder is just a snapshot. If you don't have any backups of your repository, the history is gone.

What you can do is to create a new repository and import your working folder there. (Be sure to not to attempt to import the .svn folders.)

0

精彩评论

暂无评论...
验证码 换一张
取 消