(git) expanded submodule sections

This commit is contained in:
scbj
2025-06-24 11:43:37 +02:00
parent 25214e08cf
commit 28d472b36d

9
git.md
View File

@@ -64,6 +64,15 @@ git submodule update --init --recursive
``` ```
### update reference
To update a parent repositories reference to a submodule `add` the modules path and commit:
```sh
git add <path/to/submodule>
git commit -m <commit-message>
```
## stash ## stash
If the current tree is dirty, one can use `git stash` to temporarily save the changes and reset the tree to the last commit. If the current tree is dirty, one can use `git stash` to temporarily save the changes and reset the tree to the last commit.