Sometimes when committing things to svn you want to commit a directory, but ignore all of the files inside it. The /sites/default/files/ directory within Drupal is a perfect example. Here's how:
- Add the directory, while ignoring all of the files it contains:
svn add -N [directory]
- After adding the directory enter the directory and run the following command:
svn propset svn:ignore '*.*' .
- Commit your changes:
svn commit -m "Added the directory and set the files within it to be ignored"
All better now...!