Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I ignore a directory with SVN?

I just started using SVN, and I have a cache directory that I don't need under source control. How can I ignore the whole directory/folder with SVN?

I am using Versions and TextMate on OS X and commandline.

like image 578
Gilean Avatar asked Sep 22 '08 16:09

Gilean


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?

You could add bin folder to ignore list. Right click on the bin folder -> TortoiseSVN -> Unversion and add to ignore list -> bin.

How do I commit a directory in svn?

svn add --force . will add all the files and directories below your current working directory that aren't added yet (and aren't ignored) to your working copy. A svn ci -m "" will then handle the commit. The only way without 'svn add' would be to use 'svn import', but this assumes a new location.


1 Answers

Set the svn:ignore property of the parent directory:

svn propset svn:ignore dirname . 

If you have multiple things to ignore, separate by newlines in the property value. In that case it's easier to edit the property value using an external editor:

svn propedit svn:ignore . 
like image 177
Jason Cohen Avatar answered Oct 03 '22 04:10

Jason Cohen