From a668fe1db3456456074391ca9bf6af46aa657f32 Mon Sep 17 00:00:00 2001 From: Forrest Desjardins Date: Wed, 27 Dec 2017 23:02:51 -0900 Subject: [PATCH 1/2] git-submodule: add `git submodule add` with path example --- pages/common/git-submodule.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-submodule.md b/pages/common/git-submodule.md index 0f7dbe150..cfdf0b15f 100644 --- a/pages/common/git-submodule.md +++ b/pages/common/git-submodule.md @@ -10,6 +10,10 @@ `git submodule add {{repository_url}}` +- Add a git repository as a submodule at the specified directory: + +`git submodule add {{repository_url}} {{directory}}` + - Update every submodule to its latest commit: `git submodule foreach git pull` From f8795d0c0129f1a2e5b2f073cdacc8f8642ef188 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Fri, 29 Dec 2017 13:17:25 +0530 Subject: [PATCH 2/2] git-submodule: use the standard directory convention --- pages/common/git-submodule.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-submodule.md b/pages/common/git-submodule.md index cfdf0b15f..181feaf74 100644 --- a/pages/common/git-submodule.md +++ b/pages/common/git-submodule.md @@ -12,7 +12,7 @@ - Add a git repository as a submodule at the specified directory: -`git submodule add {{repository_url}} {{directory}}` +`git submodule add {{repository_url}} {{path/to/directory}}` - Update every submodule to its latest commit: