Add docs on how to remove a submodule 15/40515/1
authoragardner <agardner@linuxfoundation.org>
Mon, 28 Aug 2017 19:51:43 +0000 (15:51 -0400)
committeragardner <agardner@linuxfoundation.org>
Mon, 28 Aug 2017 19:51:43 +0000 (15:51 -0400)
Change-Id: Ic2ff79ef9d9937466183bfeacc9fec92116dca02
Signed-off-by: agardner <agardner@linuxfoundation.org>
docs/how-to-use-docs/include-documentation.rst

index 7e9d544..d1a5a62 100644 (file)
@@ -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
+