Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

Git & GitHub Module 11

Customising and scaling Git interview questions

Interview questions on customising and scaling Git: short warm-ups, then what each harder question tests, the first step of a good answer and its follow-ups.

3 questions: 1 warm-up and 2 with model answers · Levels: Fresher to staff

Warm-up questions

Short questions with short answers, each answered in full.

  1. Fresher to mid

    What does a submodule store in the parent repository?

    Answered in the lesson Submodules and subtrees: code from other repos

Questions with model answers

What each question tests, the first step of a good answer and the follow-ups to expect.

  1. Fresher to mid

    After pulling main, Asha's build fails because the theme submodule is still the old version, and Ravi, who cloned the project yesterday, has an empty theme folder. Explain both, fix them, and change the team's setup so it stops happening.

    What it tests
    Knowing that a pull updates the gitlink but not the submodule's checkout, that a plain clone leaves submodules uninitialised, and which commands and settings fix both.
    First step
    Run git submodule status in both clones. A leading + means the checked-out commit is not the one the parent pins (Asha); a leading - means the submodule was never initialised (Ravi).
    Follow-ups

    From the lesson Submodules and subtrees: code from other repos

    Model answer, Pro. Model answers open with any pass; prices are in the notice on this page.

    Opening the model answers with your pass…

    Model answers open with any MySmartCoPilot pass.

    • Pro pass · 1 week₹79$2.99
    • 30 days₹179$5.99
    • 1 year₹1,699$45

    One payment; a pass never renews. The price shown is the total you pay: no fees or charges are added at checkout.

    It also opens every other in-depth part in Learn and every Pro tool. Sales are final, except where the law gives you a right to withdraw, for example in the EU and the UK (refund policy).

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 2 minutes
  2. Mid to staff

    A UI component library must be shared by five web apps in separate repositories, each releasing on its own schedule. Choose between submodules, git subtree and a private package, defend the choice, and say how a bug fix found in one app reaches the library and the other four apps.

    What it tests
    Weighing exact pinning, release cadence, onboarding cost and how changes flow back, and naming what each option makes hard.
    First step
    Ask how the library changes and how the apps adopt changes. If it has releases and each app upgrades on its own schedule, versions in a package manager say that directly; submodules fit when apps must pin unreleased commits or change both repositories together.
    Follow-ups

    From the lesson Submodules and subtrees: code from other repos

    Model answer, Pro.

    In the answer:

    • Model answer
    • Follow-up answers
    • Common mistakes
    • Rubric
    • Variants
    • about 3 minutes

All Git & GitHub interview questions · The Git & GitHub track

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.