What should NOT be under source control?

前端 未结 24 2376
野的像风
野的像风 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:16

    Opinion: everything can be in source control, if you need to, unless it brings significant repository overhead such as frequently changing or large blobs.

    3rd party binaries, hard-to-generate (in terms of time) generated files to speed up your deployment process, all are ok.

    The main purpose of source control is to match one coherent system state to a revision number. If it would be possible, I'd freeze the entire universe with the code - build tools and the target operating system.

提交回复
热议问题