How do restore an existing repository using TortoiseSVN?

老子叫甜甜 提交于 2019-12-23 09:26:34

问题


After my OS crashed, I've installed a fresh version (Windows 7 Pro x64).

I want to commit my project changes, so I need to restore my local repository to do this. Of course I have the all files located in my folder where was the repository before the OS crash, but of course TortoiseSVN doesn't know that there was a repository. How can I do it (I believe it is possible to restore that repository)?


回答1:


If you still have your repository folder, intact with all the .svn subfolders, all you should need is installing TortoiseSVN itself after the OS reinstall. TortoiseSVN does not rely on anything outside the file system to identify working folders, so you should be able to just check in.




回答2:


I think you're mixing up "repository" and "working-copy" here.

Assuming you have a local repository created on your harddrive:

To find your repository you could do a fresh checkout of your local repository and specify the location starting with "file://". If you have an old working-copy, but the repository is not at its old location, you can relocate it with the TortoiseSVN command "relocate".

An old working-copy should just show up. Chances are that it doesn't show up, because you installed a new version of TortoiseSVN (1.7.x) which uses a newer working-copy-format that is different from the older format. You need to select your working-copy directory and select "upgrade working-copy" so you can work with it.




回答3:


Simply checkout a new project and copy the .svn folder into existing project.



来源:https://stackoverflow.com/questions/9541770/how-do-restore-an-existing-repository-using-tortoisesvn

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