Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell SVN to ignore files for all team members

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?

like image 580
Jon Kruger Avatar asked Apr 20 '09 17:04

Jon Kruger


People also ask

What does svn ignore do?

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 ...

How do I ignore bin and obj folder in svn?

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.


1 Answers

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)

like image 119
M4N Avatar answered Sep 29 '22 06:09

M4N