Commands to init and update submodules in one line

This commit is contained in:
yannk 2021-10-17 21:58:53 +02:00
parent 6e6e9eba80
commit d623bf9d81

View file

@ -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`