Disconnect the SVN connection in android studio and completely clean the .svn file in the project

Disconnect the SVN connection in android studio and completely clean the .svn files in the project. How to disconnect from SVN. In the process of using SVN, we will find that when we share to subversion for the first time, we cannot re-share the next time, nor can we disconnect the connection, even if we delete the . Share to SVN, in fact, there is a simple way to complete our operation.

Open our project directory, navigate to the .idea directory,

Find vc s.xml and open it with Notepad,

Change VCS="svn" to VCS=""

Then we can use the VCS tool in the android studio toolbar to re-share to subversion.

Then, thoroughly clean the .svn files in the project:

After the first step of processing, although the project is disconnected from the SVN connection, the .svn file in the project has not been cleaned up, which may cause serious problems when the project is uploaded to SVN again.

Without further ado, let’s get to the point, how to clean it up? The steps are as follows:

1. Create a text file on the desktop, named clean-svn-folders.reg (the extension is changed from txt to reg), and the content is as follows:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]

@="Delete SVN Folders"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command]

@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""

After saving, double-click the reg file (Note: some anti- virus software will report a Trojan horse when double-clicking to inject , just ignore it).

2. Then find the folder you need to disconnect, right-click to find the option of "Delete SVN Folders", after clicking, you can delete all the .svn files in this folder. That is, the connection to the SVN server is disconnected

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325808329&siteId=291194637
svn