diff --git a/git.md b/git.md index 0632b09..fb9cad6 100644 --- a/git.md +++ b/git.md @@ -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 +git commit -m +``` + + ## 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.