diff --git a/README.md b/README.md index 134ae6b..b06c387 100644 --- a/README.md +++ b/README.md @@ -475,6 +475,12 @@ git clean -df git submodule foreach git pull ``` + +__Alternatives:__ +```sh +git submodule update --init --recursive +``` + ## Show all commits in the current branch yet to be merged to master ```sh git cherry -v master diff --git a/tips.json b/tips.json index b25f127..acfcf78 100644 --- a/tips.json +++ b/tips.json @@ -172,7 +172,8 @@ "alternatives": ["git clean -df"] }, { "title": "Update all the submodules", - "tip": "git submodule foreach git pull" + "tip": "git submodule foreach git pull", + "alternatives": ["git submodule update --init --recursive"] }, { "title": "Show all commits in the current branch yet to be merged to master", "tip": "git cherry -v master",