Sunday, May 10, 2015

How To Remove Files & Folders From an SVN Repository

Disclaimer - I am not an expert on SVN. After struggling for many hours to figure out the exact process, I narrowed it down to these steps. There may be an easier way to do this, but I couldn't figure it out. These particular steps work all the time for me. If there is a better way to accomplish this, feel free to post it in the comments section. 

This is an example on removing a folder from an SVN repository without deleting it from the disk. Doing this incorrectly will lead to the parent folder showing the modified icon.

Consider the following repository - C:\svn_repository\trunk\java\removeThisFolder\removeThisFile.txt

We wish to remove - removeThisFolder\removeThisFile.txt from the SVN repository.

The directory and the file inside it need to be removed

Right click on the folder and click on Unversion and add to ignore list and then select the folder
Commit the changes

Navigate to the parent folder, and click on SVN Update

Now Commit the changes

This would make the Modified icon disappear

No comments:

Post a Comment

Had to include word verification to prevent spam.