Alex Rivera | Logout

What should NOT be under source control?

Asked 2009-08-13T18:57:53.420
62

It would be nice to have a more or less complete list over what files and/or directories that shouldn't (in most cases) be under source control. What do you think should be excluded?

Suggestion so far:

In general

  • Config files with sensitive information (passwords, private keys etc.)
  • Thumbs.db, .DS_Store and desktop.ini
  • Editor backups: *~ (emacs)
  • Generated files (for instance DoxyGen output)

C#

  • bin\*
  • obj\*
  • *.exe

Visual Studio

  • *.suo
  • *.ncb
  • *.user
  • *.aps
  • *.cachefile
  • *.backup
  • _UpgradeReport_Files

Java

  • *.class

Eclipse

I don't know, and this is what I'm looking for right now :-)

Python

  • *.pyc

Temporary files - .*.sw? - *~

Edit
Report

1 Answer

1

Things that don't go into source control come in 3 classes

  1. Things totally unrelated to the project (obviously)
  2. Things that can be found on installation media, and are never changed (eg: 3rd-party APIs).
  3. Things that can be mechanically generated, via your build process, from things that are in source control (or from things in class 2).
answered 2009-08-13T19:21:35.217

Your Answer