next up previous
Next: When to Commit Up: Best Practices Previous: Best Practices

What to Commit

It's important to think about what kind of files you should commit to the repository. You must add all of the files that anyone will need to build the project: source code, makefiles, etc.

However, it's a bad idea to commit any file that's automatically generated by part of this build process. First, these often tend to be binary files, and SVN's merge algorithm doesn't work on binary files. Second, you can get into consistency problems; it's easier to just automatically generate these during builds.



Richard Cobbe 2007-01-16