What should NOT be under source control?

前端 未结 24 2392
野的像风
野的像风 2020-12-04 07:24

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

24条回答
  •  囚心锁ツ
    2020-12-04 08:01

    Anything that is generated. Binary, bytecode, code/documents generated from XML.

    From my commenters, exclude:

    • Anything generated by the build, including code documentations (doxygen, javadoc, pydoc, etc.)

    But include:

    • 3rd party libraries that you don't have the source for OR don't build.

    FWIW, at my work for a very large project, we have the following under ClearCase:

    • All original code
    • Qt source AND built debug/release
    • (Terribly outdated) specs

    We do not have built modules for our software. A complete binary is distributed every couple weeks with the latest updates.

提交回复
热议问题