thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Advanced

Git Submodule

A repository embedded inside another Git repository at a specific commit.

Definition

Submodules let one project reference another's exact version. They must be initialized and updated explicitly (git submodule update --init --recursive), which often confuses CI checkouts.

Example

actions/checkout with submodules: recursive fetches nested repositories.

Exam tip

Submodules pin a commit, not a branch; forgetting to init them causes missing-file build errors.

Related terms