Ignoring multiple files or directories from SVN version control

The following are directions on how to ignore multiple local files from being revision controlled under SVN.
  1. Navigate to the directory where you want to ignore something
  2. Issue the following command:
    1. (Optional) export SVN_EDITOR=vi
    2. svn propedit svn:ignore .
    3. Add the names of the files you want to ignore within this local directory, all separated by a new line character
    4. Save the file
  3. Check to see your chosen files are being ignored
    1. svn status --no-ignore
      1. You will see an ‘I‘ next to ignored files
      2. You may see a ‘M     .‘ entry as well. This indicates your svn properties file was modified. It is important to realize that although you have locally ignored these files, this ignore action will be checked into your version control repository and those files will be ignored globally! I don’t believe there is any way around this, it is a fact of SVN.

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 )

Google+ photo

You are commenting using your Google+ 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