X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Fhow-to-use-docs%2Finclude-documentation.rst;h=d1a5a6227f4535fb81473b09b9203e34602658da;hb=6b1fab42574d5d49d6973c5dd029704b1e964b0b;hp=0bc3264b63c48ccf247994aaee3eeae30f4ed2b0;hpb=8d3484686d216e48bac4ab6e9fb67bf8475568da;p=opnfvdocs.git diff --git a/docs/how-to-use-docs/include-documentation.rst b/docs/how-to-use-docs/include-documentation.rst index 0bc3264b6..d1a5a6227 100644 --- a/docs/how-to-use-docs/include-documentation.rst +++ b/docs/how-to-use-docs/include-documentation.rst @@ -236,8 +236,19 @@ Clone the opnfvdocs repository and your submodule to .gitmodules following the c .. code-block:: bash cd docs/submodules/ - git submodule git https://gerrit.opnfv.org/gerrit/$reponame + git submodule add https://gerrit.opnfv.org/gerrit/$reponame git submodule init $reponame/ git submodule update $reponame/ git add . + git commit -sv git review + +Removing a project repository as a submodule +-------------------------- + git rm docs/submodules/$reponame + rm -rf .git/modules/$reponame + git config -f .git/config --remove-section submodule.$reponame 2> /dev/null + git add . + git commit -sv + git review +