Changes
Page history
Update Managing Submodules
authored
Apr 22, 2024
by
wmaahs
Show whitespace changes
Inline
Side-by-side
Submodules/Managing-Submodules.md
View page @
b87d904a
This page contains useful tips for when you are managing submodules.
This page contains useful tips for when you are managing submodules.
First and for most, the two most important things to remember are:
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**
**How to remove a Submodule**
...
@@ -36,6 +37,14 @@ First and for most, the two most important things to remember are:
...
@@ -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>
"
```
3. Commit your changes to the project: ```
git commit -m "
<Message>
"
```
4. Push your changes: ```
git push
```
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**
**References**
...
...
...
...