Git Submodule

From PKC
Revision as of 00:37, 16 August 2021 by Benkoo (talk | contribs) (Created page with "A Git Submodule can be included as follows: git submodule add <remote_url> <destination_folder> In the case of '''https://github.com/FantasticoFox/ExtensionDataAccounting''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A Git Submodule can be included as follows:

git submodule add <remote_url> <destination_folder>

In the case of https://github.com/FantasticoFox/ExtensionDataAccounting, go to the home directory of DockerizedPKC,

git submodule add https://github.com/FantasticoFox/ExtensionDataAccounting extensions/ExtensionDataAccounting

Note that one must supply the directory name of the included submodule.

When a refresh of submodule content is necessary, go to the home directory of the main project:

git submodule update --init --recursive