Thursday, December 10, 2009

Ignoring multiple files in Subversion using command line

Ignoring single in Subversion file/folder is as easy as
svn propset svn:ignore bin .
This would make svn ignore folder bin in current directory (final dot is mandatory).
But ignoring multiple files is a little bit more complicated. Firstly you should have one of environment variables SVN_EDITOR, VISUAL or EDITOR set. This can be done as easy as
export SVN_EDITOR=geany
This would make Geany you svn editor. This assumes Geany is installed of cause :)
Then simply start your svn editor and add all files you want to ignore
svn propedit svn:ignore .
The editor would start and you can add as many files as you like, one per line. Again, final dot means that you edit ignored files in current folder.
That's it :)

4 comments:

Anonymous said...

Dear Author java-hamster.blogspot.com !
Cold comfort!

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...
This comment has been removed by a blog administrator.
Broadway Day Dreams said...

This is a greeat post thanks