From 28d472b36da9045dfacbda8661e2aa0f0d857ae8 Mon Sep 17 00:00:00 2001 From: scbj Date: Tue, 24 Jun 2025 11:43:37 +0200 Subject: [PATCH] (git) expanded `submodule` sections --- git.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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.