CmdID

CmdID / Commands

git-submodule

Inspect, update, and manage submodules. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

View existing submodules and the checked-out commit for each one

git submoduleIdentify

Install a repository's submodules (listed in .gitmodules)

git submodule update --init --recursiveIdentify

Add a Git repository as a submodule of the current one

git submodule add repository_urlIdentify

Add a Git repository as a submodule of the current one, at a specific directory

git submodule add repository_url path/to/directoryIdentify

Update submodules to their latest commits

git submodule update --remoteIdentify

Change the URL of a submodule

git submodule set-url path/to/submodule new_urlIdentify

Unregister a submodule (e.g. before removing it from the repository with git rm)

git submodule deinit path/to/submoduleIdentify