summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1ce4790)
raw | patch | inline | side by side (parent: 1ce4790)
author | Abhijit Menon-Sen <ams@toroid.org> | |
Tue, 29 Jul 2008 19:53:16 +0000 (01:23 +0530) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 30 Jul 2008 06:18:04 +0000 (23:18 -0700) |
Signed-off-by: Abhijit Menon-Sen <ams@toroid.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/user-manual.txt | patch | blob | history |
index c5641af19059f5531e43bd4d4ff495548030fe98..00256ca57cc7453ef4a0dce90169078ee96e95e3 100644 (file)
$ git init
$ for i in a b c d
do
- git submodule add ~/git/$i
+ git submodule add ~/git/$i $i
done
-------------------------------------------------
. .. .git .gitmodules a b c d
-------------------------------------------------
-The `git-submodule add` command does a couple of things:
+The `git-submodule add <repo> <path>` command does a couple of things:
-- It clones the submodule under the current directory and by default checks out
- the master branch.
+- It clones the submodule from <repo> to the given <path> under the
+ current directory and by default checks out the master branch.
- It adds the submodule's clone path to the linkgit:gitmodules[5] file and
adds this file to the index, ready to be committed.
- It adds the submodule's current commit ID to the index, ready to be