I have subversioned my entire folder which contains all the source files, binaries and other files my IDE (Visual Studio) uses. Now each time I do a build next time I do a svn commit, svn will upload my changed builds. How can I exclude certain files folders within a tree? (I only want my source files not my builds and IDE files subversioned).
Asked
Active
Viewed 78 times
1 Answers
2
You can ignore file patterns selectively with the svn:ignore property.
See this question for details on ignoring a directory.
-
Also here: http://svnbook.red-bean.com/en/1.7/svn.advanced.props.special.ignore.html – markmnl May 02 '12 at 04:31
-
ahh but that only ignores: "one-time process of adding unversioned files and directories to version control", how can I ignore items already added? – markmnl May 03 '12 at 09:02
-
Ignoring items that are already added is the wrong way to do it. This would be very bad practice. With subversion, the easiest thing to do is start over. If you really want to maintain the history, you can probably remove them from the history with significant effort. I'd suggest checking out git as a much more flexible version control system. Dealing with 'mistakes' like this is more feasible. – djs May 03 '12 at 18:46
-
1The one other reasonable thing to do is to delete all of your build files from your work tree and commit this change. Now, they will no longer be pulled in so long as you use that commit or newer, and svn:ignore will take effect. – djs May 03 '12 at 20:24