How to get out of subversion source control in visual studio?

大兔子大兔子 提交于 2019-12-03 11:06:59

问题


I have a solution that is source controlled with Subversion and AnkhSVN in Visual Studio 2008, but I would like to remove source control from it, how do I do that?


回答1:


SVN, as opposed to the dreaded VSS, does not clutter your project files with its "bindings": it keeps all its system information in .svn or _svn subfolders inside every version-controlled directory. Thus, "removing" version control from a project effectively means deleting all these folders.

This is tedious, however, so SVN has a special command called svn export which either "exports a clean directory tree from the repository specified by URL" or "exports a clean directory tree from the working copy ".




回答2:


As far as I know, AnkhSVN stores bindings in the project and solution files (also cached in solution user options file **.suo*).

I think that you can remove these bindings by going to File | Source control | Change Source Control (or in the dedicated AnkhSVN toolbar). In that dialog there should be a command to Disconnect the projects.




回答3:


Remove .svn folders and your source tree will not be versioned anymore.




回答4:


If you want to remove the Subversion control of a file/folder, but want to leave it where it currently is, you can use the 'Delete (keep local)' option on TortoiseSVN. To see this option you must hold down shift when you right-click the file/folder, then it will appear in the context menu.




回答5:


  1. Delete SVN folder with a hidden attributes from your file system
  2. open VS solution file in text editor & remove a reference to subversion "...Managed by Subversion..." works fine for me..


来源:https://stackoverflow.com/questions/824067/how-to-get-out-of-subversion-source-control-in-visual-studio

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