From a38af8b644b1ca82df178944716c87cbe807533e Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Sat, 23 Sep 2023 01:23:14 +0200 Subject: [PATCH] Docs: git pull is needed after syncing git modules (#29299) * git pull is needed after syncing git modules I followed the instructions to update the repo but still wondered why it dit not really do anything. Now I stumbled the secod time over the fact that tthe "clone" command in docs give you a full working repo, but the "synching modules" does not update them ... so git pull is needed. I think it nmight be good to add that here in order to support users. * Update BUILDING.md * Update docs/guides/BUILDING.md Co-authored-by: Boris Zbarsky * Restyled by prettier-markdown --------- Co-authored-by: Boris Zbarsky Co-authored-by: Restyled.io --- docs/guides/BUILDING.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/guides/BUILDING.md b/docs/guides/BUILDING.md index 359b35e3d6b2d4..89e657f834a350 100644 --- a/docs/guides/BUILDING.md +++ b/docs/guides/BUILDING.md @@ -31,12 +31,13 @@ To check out the Matter repository, run the following command: git clone --recurse-submodules git@github.com:project-chip/connectedhomeip.git ``` -## Synchronizing submodules +## Updating Matter code -If you already have the Matter code checked out, run the following command to -synchronize submodules: +If you already have the Matter code checked out, run the following commands to +update the repository and synchronize submodules: ``` +git pull git submodule update --init ```