summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authoragardner <agardner@linuxfoundation.org>2017-08-28 15:51:43 -0400
committeragardner <agardner@linuxfoundation.org>2017-08-28 15:51:43 -0400
commit1f7c3cefc0563d9e55c53b916d3c7fa3d5e43a6d (patch)
tree5921f30853d78cecd5cc147c35c428b5e81ba2e4 /docs
parent306de8d12179fc44072d088200a28d94f60543d0 (diff)
Add docs on how to remove a submodule
Change-Id: Ic2ff79ef9d9937466183bfeacc9fec92116dca02 Signed-off-by: agardner <agardner@linuxfoundation.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/how-to-use-docs/include-documentation.rst11
1 files changed, 11 insertions, 0 deletions
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
+