4

I think we can all agree, when a developer gets a project out of their source control system... it should successfully build.

Question: What extraneous files do you omit and which are you certain to add?

JaredCacurak
  • 1,139
  • 12
  • 18

5 Answers5

7

Anything that's generated from the items you check into source control.

Things I check in:

  1. Source files (usually .java for me, but can be other languages)
  2. 3rd party JARs
  3. Configuration XML or .properties
  4. HTML, CSS, JSPs for web apps
  5. SQL scripts
  6. Design (UML) and documentation (Word or HTML)
  7. Unit test classes and any data I need to run them

Things I don't:

  1. Compiled .class files
  2. Generated JAR or WAR files
  3. javadocs
  4. JUnit report HTML and results
duffymo
  • 305,152
  • 44
  • 369
  • 561
1

In addition to generated files, in Visual Studio I leave out mstest files (.vsdmi), resharper user files, Visual Studio user files (.suo).

Phillip Ngan
  • 15,482
  • 8
  • 63
  • 79
1

Include information about the database schema (diagram), set up queries and other special config params

Cesar
  • 1,610
  • 2
  • 16
  • 42
1

My global ignore pattern for TortoiseSVN is: *.vbw *.scc *.vbg */bin */obj *.bak *.user *.suo *.webinfo bin obj *.dll *.pdb *.exe which covers both VB6 and C#.

C-Pound Guru
  • 15,967
  • 6
  • 46
  • 67
0

I always leave out compiled files, which for me are generally of the .pyc variety.