Skip to content

slorber/docusaurus-git-submodules-tests

Repository files navigation

Docusaurus git submodules tests

Related to:


Creation

Repo created with 3 submodules:

git submodule add [email protected]:facebook/docusaurus.git docusaurus
git commit -m "Add Docusaurus submodule"

git submodule add [email protected]:facebook/react-native.git react-native
git commit -m "Add React Native submodule"

git submodule add [email protected]:facebook/react-native-website.git react-native-website
git commit -m "Add React Native Website submodule"

git push

Cloning

Clone the repo, including its submodules

git clone --recurse-submodules [email protected]:slorber/docusaurus-git-submodules-tests.git

If you already cloned the repo without submodules, you can run:

git submodule update --init --recursive

Useful commands

List submodules:

git submodule

Get the repository root dir:

git rev-parse --show-toplevel

Get the "superproject" path from a submodule cwd:

git rev-parse --show-superproject-working-tree

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors