Which files do you commit and/or omit from your source control?

前端 未结 5 498
囚心锁ツ
囚心锁ツ 2021-01-06 04:09

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

5条回答
  •  攒了一身酷
    2021-01-06 04:35

    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

提交回复
热议问题