blah blah blah is here! blah blah » Close

up3down
link

I find it annoying that whenever I upload my files to a server, the subversion folders .svn come in the way (I don't want to publish those for obvious reasons).

Any tips on how I can remove these folders in a more efficient manner?

Rick_A
761

I just posted an answer, but not sure if you are running unix or not? anyhow ignore #3 if on unix.

last answered 2 years ago

2 answers

link

You have a few options, some of them include:

1. Use a proper automated build tool, and in one of your steps you should run through the files/folders and remove any unwanted content (in your case the .svn folders).

2. Check out FileZilla, you can set it to ignore files/folders during your uploads to your server.

3. Using powershell you can cycle through the folders and remove whatever want like:

gci 'C:\_DevCode\CustomApps' -include _svn -recurse -force | foreach ($_) { del $_.fullname -recurse -force -whatif}


reference: http://joelangley.blogspot.com/2009/06/remove-svn-folder-using-powershell.html

Elliot_S
400

great answer, I never thought about a ftp solution thanks!

up1down
link

I would recommend using the build tool and as part of the build, doing an svn export which is like a checkout but does not include the version control meta data contained in the .svn folders (nor the folders themselves).

if you use the publish option from vs, there should also be an option for only including files necessary to run the project. I can't recall if this excludes the svn folders or not.

Feedback