I have various files that I want to be ignored by SVN when committing. I know that I can go into TortoiseSVN and ignore them in various ways. I know that I can run svn propedit svn:ignore from the command line to do the same thing.
The problem is that I have to have everyone on my team to do that, which is a pain. Is there a way that I can put some file in a folder or set something in my SVN repository that tells it to never check a certain file in?
The svn:ignore property is a good way to tell Subversion to ignore files that are likely to be present in every user's working copy of that directory, such as compiler output or—to use an example more appropriate to this book—the HTML, PDF, or PostScript files generated as the result of a conversion of some source ...
If you right click on a single unversioned file, and select the command TortoiseSVN → Add to Ignore List from the context menu, a submenu appears allowing you to select just that file, or all files with the same extension.
Once you have setup your svn:ignore properties (either using TortoiseSVN or the commandline), you should commit these changes.
As soon as your team-members update their working copies, they will also have the svn:ignore properties set, and the files/folders listed in the properties will be excluded from commits.
See this page for details: TortoiseSVN - Ignoring Files And Directories
Note:
If you have already commited some file which should be ignored, then you first have to delete them from the repository before you can ignore them (see rmeador's comment)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With