CS FundamentalsHardProduct-company placement · Git
How many of these statements about Git submodules are correct? 1. A plain git clone of the superproject leaves submodule directories empty until git submodule update --init is run (or --recurse-submodules is used). 2. The superproject records a specific commit of each submodule, not a branch to follow. 3. Committing in the submodule automatically updates the superproject's pointer. 4. After pulling a superproject commit that moves a submodule pointer, git submodule update checks out that commit in the submodule.
- A. 1
- B. 2
- C. 4
- D. 3
Correct answer: D. 3
1, 2 and 4 are correct: the superproject stores a gitlink to an exact commit. After committing inside a submodule you must still stage and commit the new pointer in the superproject, so 3 is false.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- On main you run git merge -s ours feature in one repository and git merge -X ours feature in a copy. Which statement is correct?
- main and feature split at commit B. Since then main has gained commit C (editing a.txt) and feature has gained commit D (editing b.txt)…
- main has A-B-C. feature branched from B and has D-E. On main you run git merge feature, creating merge commit M (first parent C, second…
- Which practice is characteristic of the Cleanroom software engineering process?
- A project has budget at completion ₹900 lakh, earned value ₹360 lakh and actual cost ₹420 lakh. What is the to-complete performance index…
- The Jelinski–Moranda model says the failure intensity before the i-th failure is φ(N − i + 1), where N is the initial number of faults and…