From b096219f3106d96a8e78d38f5c9a4fc12467a0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20F=C3=A9lizard?= Date: Sat, 18 Jun 2016 09:43:34 +0000 Subject: [PATCH] Add alternative to update submodules --- README.md | 5 +++++ tips.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b06c387..fa7c93d 100644 --- a/README.md +++ b/README.md @@ -481,6 +481,11 @@ __Alternatives:__ git submodule update --init --recursive ``` + +```sh +git submodule update --remote +``` + ## 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 acfcf78..571cd52 100644 --- a/tips.json +++ b/tips.json @@ -173,7 +173,7 @@ }, { "title": "Update all the submodules", "tip": "git submodule foreach git pull", - "alternatives": ["git submodule update --init --recursive"] + "alternatives": ["git submodule update --init --recursive", "git submodule update --remote"] }, { "title": "Show all commits in the current branch yet to be merged to master", "tip": "git cherry -v master", @@ -361,4 +361,4 @@ }, { "title": "Clone a shallow copy of a repository", "tip": "git clone https://github.com/user/repo.git --depth 1" -}] \ No newline at end of file +}]