From 9d905ac6d14ea8b1acf7e9f48dde5a3f810e4fd8 Mon Sep 17 00:00:00 2001 From: denisbalyko Date: Sat, 18 Jun 2016 12:42:31 +0300 Subject: [PATCH 1/2] added alternative update submodules --- README.md | 6 ++++++ tips.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24bf42f..5c0c554 100644 --- a/README.md +++ b/README.md @@ -440,6 +440,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 b17022d..8835b63 100644 --- a/tips.json +++ b/tips.json @@ -161,7 +161,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", From 7cfb00247408351386c2c87bb14e309ece6b4b1f Mon Sep 17 00:00:00 2001 From: denisbalyko Date: Sat, 18 Jun 2016 12:44:05 +0300 Subject: [PATCH 2/2] fix indent --- tips.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tips.json b/tips.json index 8835b63..e8302d2 100644 --- a/tips.json +++ b/tips.json @@ -162,7 +162,7 @@ }, { "title": "Update all the submodules", "tip": "git submodule foreach git pull", - "alternatives": ["git submodule update --init --recursive"] + "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",