Ignoring Files in Subversion from the Command Line

Subversion uses a directory’s svn:ignore tag to control the files that it ignores. The list is separated by carriage returns, which is a pain to do from the command line. Roman Mackocak has a nice reminder that subversion can be told to let you use an editor to edit the svn:ignore tag.

In summary,

  • Ensure that the EDITOR environment variable is set appropriately. (e.g. set EDITOR=vim)
  • Tell subversion you want to edit the svn:ignore tag.
$ svn propedit svn:ignore .
  • Edit the list, one entry per line.
  • Commit the changes when ready.
This entry was posted in Programming and tagged , , , , . Bookmark the permalink.

Leave a Reply