In the context of Software Configuration Management (SCM), what kind of files…

2021

In the context of Software Configuration Management (SCM), what kind of files should be committed to your source control repository?

A. Code files

B. Documentation files

C. Output files

D. Automatically generated files that are required for your system to be used

Choose the correct answer from the options given below:

  1. A.

    A and B only

  2. B.

    B and C only

  3. C.

    C and D only

  4. D.

    D and A only

Attempted by 203 students.

Show answer & explanation

Correct answer: A

Correct answer: Commit source code files and documentation files.

Why:

  • Commit source code and documentation: these are the human-maintained artifacts that define the system and how to use it.

  • Do not commit build outputs or compiled binaries: they are generated from the source, can be large, and clutter history. Produce them via the build process or CI.

  • Handle automatically generated files carefully: usually do not commit them; exceptions exist when generated artifacts are required for distribution or consumers cannot regenerate them. If you include such files, document the reason.

  • Commit build scripts, configuration, and dependency manifests: these let others reproduce builds and generate outputs from source.

  • Practical tips:

    - Use a .gitignore to exclude build artifacts.

    - Use package managers and CI to provide reproducible builds and distribution artifacts.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor