Update Managing Submodules authored by wmaahs's avatar wmaahs
This page contains useful tips for when you are managing submodules.
First and for most, the two most important things to remember are:
**1. Always publish the submodule change before publishing to the subproject that references it
2. Always commit all your changes before running ```git submodule update```**
1. **Always publish the submodule change before publishing to the subproject that references it**
2. **Always commit all your changes before running ```git submodule update```**
**How to remove a Submodule**
......@@ -36,6 +37,14 @@ First and for most, the two most important things to remember are:
3. Commit your changes to the project: ```git commit -m "<Message>"```
4. Push your changes: ```git push```
***Ignoring changes in a submodule***
1. Find the .gitmodules files in the root directory of your parent project
2. This file contains a list of all the submodules in the project
3. In the submodule that you want to ignore, add the line ```ignore = dirty```
(e.g.)
```[submodule ".vim/bundle/msanders-snipmate"] path = .vim/bundle/msanders-snipmate url = git://github.com/msanders/snipmate.vim.git ignore = dirty```
--------------------
**References**
......
......