How to ignore files in a directory under subversion control

June 11, 2010

First thing to realise is that you don’t ignore a file, you set ignored files on the directory.

# ---------------------------------------------------------------------
# Ignore all the .txt files in the /trunk/Blah/ directory
# --------------------------------------------------------------------- 
# Go to the directory cd trunk/Blah/ 
# The directory with the files # Start editing the properties for the current directory svn propedit svn:ignore . 
# Opens an editor (SVN_EDITOR, EDITOR) 
# Add the following value with a new line, save, and exit: *.txt 
# See that things worked svn propget svn:ignore . 
# So you can see the properties svn status --no-ignore 
# You should see an 'I' next to the ignored files 
# Commit svn commit -m "New Ignores" # You must commit the new property change

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: