Pages

Wednesday, May 5, 2010

Removing folder from SVN

Well, i haven't use SVN for a long time, so my memory is a bit lacking. I initially import all of my project to SVN, but I've forgotten some folder that should be excluded from the initial import. Such as generated bin files. And i want to remove it from SVN versioning.

The solution is pretty simple, you go to the folder that you didn't want to manage in windows explorer. Search for file and folder containing .svn, and don't forget to check search subdirectory, and search hidden file option. Sort by folder, delete all of the .svn folder.

Then go to eclipse, update your project. And then the bin  folder will have a question mark near it. Just right click add to svn:ignore. And you're finished. The bin folder wouldn't be managed by SVN any longer.

Update :
After migrating to eclipse galileo subclipse somehow treat this workaround  as un-ignored error. The better approach is to delete the folder from SVN Repositories View and check out the code again, and then add the folder to svn:ignore. The subclipse wiki explain in more detail.


~SD

No comments: