Short Tip: Ignore files in svn

In my new job I’m developing software with the help of svn. There are certain files I don’t want to be managed by svn: moc files, precompiled binaries, Makefiles, etc. This can be done with the svn ignore property.

First of all you need to set up svn properly.

svn propset svn:ignore -F .cvsignore .

Next check with svn stat which files are not currently under version control and which of them you might want to ignore. Next, call the list of ignored files:

svn propedit svn:ignore .

Add the files which you would like to ignore here and close your editor. In my case the list looks like:


As you see the file names don’t have to be the full name but can also contain the Asterisk *.

One thought on “Short Tip: Ignore files in svn”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: