Sometimes one of my collegaue adds some folders to the svn, and when i checkout the project, i get all those folders that i dont need (such as resharper folder, proj files, sln files etc). I can delete the folders very easily but guess what, i have my own copy of those folders that i am using.so i need those folders but now from svn. I cant ignore the project cause they are already under revision control (if the file/folder is already checked in, you cant ignore it before you remove them from the repo)
So only thing i need is a way to delete _svn folders from the the folders that i dont need to check out, and then ignore the folders. I found this smart posting that does exactly what i need.In case the posting is removed , let me copy the content, i am not changing a single word from the posting
==============
Shell Command - Remove SVN Folders
The
Subversion source control client maintains your local state in hidden
folders named .svn inside your project, which can be a problem if you
want to copy or share the project directory. This REG file adds
"Delete SVN Folders" to the context menu for folders. When you select
it, it removes all folders named .svn inside the folder and it's
children (it does nothing if the project's not under Subversion source
control.
I'm not going to bother explaining reg file installation here - I figure if you're using SVN, you're good with reg files.
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\" \""
I got the idea from Wyatt Preul's post comparing Powershell and Command Prompt commands to delete SVN directories, so if you'd like to do this manually take a look at his scripts.
==============