From 1f7c3cefc0563d9e55c53b916d3c7fa3d5e43a6d Mon Sep 17 00:00:00 2001 From: agardner Date: Mon, 28 Aug 2017 15:51:43 -0400 Subject: Add docs on how to remove a submodule Change-Id: Ic2ff79ef9d9937466183bfeacc9fec92116dca02 Signed-off-by: agardner --- docs/how-to-use-docs/include-documentation.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs/how-to-use-docs') diff --git a/docs/how-to-use-docs/include-documentation.rst b/docs/how-to-use-docs/include-documentation.rst index 7e9d54462..d1a5a6227 100644 --- a/docs/how-to-use-docs/include-documentation.rst +++ b/docs/how-to-use-docs/include-documentation.rst @@ -240,4 +240,15 @@ Clone the opnfvdocs repository and your submodule to .gitmodules following the c 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 + -- cgit 1.2.3-korg