Changes
Page history
Update Submodules
authored
Nov 19, 2020
by
Arne Keller
Show whitespace changes
Inline
Side-by-side
Submodules.md
View page @
4c2bb301
...
...
@@ -34,6 +34,7 @@ Updating the submodule(s) to latest commit
git pull <remote branch name>
```
*
Or, you can browse to the main repository and simultaneously pull all submodules:
```
bash
git pull
--recurse-submodules
git submodule update
--remote
...
...
@@ -49,6 +50,7 @@ A submodule is always tied to one particular commit of the repository it refers
git checkout <commit
hash
>
```
*
browse back to the main folder and push the changes in the submodule:
```
bash
git add
.
git commit
-m
'commit message, e.g. update submodule (name_of_submodule)'
git push <remote branch name
(
origin master
in
most cases
)>
...
...
...
...