SVN Ignore

by Lance on February 4, 2010

Chance is if you’re working on a source controlled project, you’ll have this annoying garbage files somewhere. Its no big deal at first but over time, it can kill your productivity, especially when you’re isolating some changes whenever you commit. In my case since I’m working on a CakePHP application, that would be the tmp folder.

So here’s what I did:

  • Set VIM as editor for svn property files by running export SVN_EDITOR=vim on the terminal
  • then run svn propedit svn:ignore ./tmp
  • Insert * (asterisk) in the VIM editor, to “Ignore everything insider the tmp folder”
  • Save it, Commit and that’s it!

I think VIM is really a handy editor for cases like this, I actually failed to set Coda, TextEdit, and TextMate as my SVN editor. So it really saved me a lot of time.

Update: It seems I still have to manually ignore each directory inside tmp for it to work.

Leave your comment

Required.

Required. Not published.

If you have one.