AI engineering glossary · Command line Git

What is submodule?

Submodule: A way to embed another Git repository inside a project at a fixed commit, keeping its history separate. It is used to include shared code but needs extra commands to update, and clones need the --recursive option.

Level: advancedTopic: Command line Git

Submodule: an example

git submodule add <url> libs/tokenizer places another repository under libs/tokenizer.

Related terms

More Command line Git terms

Where you learn it

Submodule is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.