From d623bf9d8155c685a31094f609ad0f2c1a7066c6 Mon Sep 17 00:00:00 2001 From: yannk Date: Sun, 17 Oct 2021 21:58:53 +0200 Subject: [PATCH] Commands to init and update submodules in one line --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b8e2cdb..76b289b 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,7 @@ To send your update, could you please create a branch and send us this branch? ### Git sub modules This repository uses [submodule to git](https://git-scm.com/book/fr/v2/Utilitaires-Git-Sous-modules) : -- when updating the repository for the first time after the adition of submodules, you will have to pass these commands to be sure you will get the submodules downloaded and updated. From your repository folder, pass : +- when updating the repository after merging, you will have to pass these commands to be sure you will get the submodules downloaded and updated. From your repository folder, pass : - `git submodule init` - `git submodule update` - -If you clone the repository for the first time, you can do everything in one command : -- `git clone --recurse-submodules ssh://git@git.khaganat.net:3543/khaganat/mmorpg_khanat/khanat-client.git` +- you can pass the two in one : `git submodule update --init`