How to disassociate copy files in the svn

  Sometimes, a module we have developed a number of projects are the same, such as user management, etc., in order to save unnecessary development resources will be directly related to the development of good project before the module code copy over, but tend to eat experience a pit: copy the file or associated with the svn address before the project ( the .svn file is original sin ), so if you copy directly to your new development project, any changes, after you delete and other operations will directly affect to the project before you (to know how much of it ??? consequences if the project is not backed up before, or developers responsible for this function module's departure, the company will take time, manpower and other resources to redevelop this one, but also delay the customer delivery, think about the cost of a great loss to know slightly ~ of course, in this case, I suggest you quickly pack up and run away, right ~ ^ _ ^ haha)

  Well, since we know original sin is the file .svn files at work, then get rid of it directly like! ! ! !

  However, if you copy the file is large, there are many sub-directory file, then delete one by one, efficiency is too low it ~ do not worry, there is a simple and crude solution:

  1. Under the new directory just what a .txt text file name casually (but still suggest you name it: Cancel SVN association, at a glance, easy to find later), open the text file, copy the following text into a text file certain :( pay attention to wrap)
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] 
    @="取消SVN关联"
    [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\" \""

    As shown below:

     

    Note wrap position to file the same with me.

  2. Generating a registration file: modify the file name extension .reg, as shown below:

    Double-click the file to run in the warning that pops up, select "Yes" button. The registry script file will be injected into the registry of this machine. 

  3. Svn delete information

   Find you need to cancel svn associated folder, click the "right" in the pop-up menu to find the "Cancel SVN associated with" click, and then execute the script finished, we will be pleasantly surprised svn find information on the project has already been deleted. Is not it simple? ? ! !

     Operation as shown below:

   

Guess you like

Origin www.cnblogs.com/4AMLJW/p/unlinkFileSVN202001061653.html