Update Managing Submodules authored by wmaahs's avatar wmaahs
......@@ -6,13 +6,13 @@ First and for most, the two most important things to remember are:
2. **Always commit all your changes before running ```git submodule update```**
**How to remove a Submodule**
***How to remove a Submodule***
1. Delete the relevant line from the [.gitmodules](https://git.ece.iastate.edu/danc/MicroCART/-/blob/d45a6d510a134acee40c10da9a22a6d51b9d5137/.gitmodules) file in the parent directory of the parent project.
2. Delete the relevant section from .git/config
3. Run ```git rm --cached path/to/submodule``` (no trailing '/')
4. Commit and delete the now untracked submodules files.
**How to put a submodule, back into your project, but not as a submodule (un-submodule)**
***How to put a submodule, back into your project, but not as a submodule (un-submodule)***
1. Delete the reference to the submodule from the index, but keep the files:
```git rm --cached submodule/path (no trailing slash'/')```
......
......