6 gitmodules - defining submodule properties
16 The `.gitmodules` file, located in the top-level directory of a git
17 working tree, is a text file with a syntax matching the requirements
18 of linkgit:git-config[1].
20 The file contains one subsection per submodule, and the subsection value
21 is the name of the submodule. Each submodule section also contains the
22 following required keys:
24 submodule.<name>.path::
25 Defines the path, relative to the top-level directory of the git
26 working tree, where the submodule is expected to be checked out.
27 The path name must not end with a `/`. All submodule paths must
28 be unique within the .gitmodules file.
30 submodule.<name>.url::
31 Defines an url from where the submodule repository can be cloned.
37 Consider the following .gitmodules file:
41 url = git://foo.com/git/lib.git
45 url = git://bar.com/git/lib.git
48 This defines two submodules, `libfoo` and `libbar`. These are expected to
49 be checked out in the paths 'include/foo' and 'include/bar', and for both
50 submodules an url is specified which can be used for cloning the submodules.
54 linkgit:git-submodule[1] linkgit:git-config[1]
58 Documentation by Lars Hjemli <hjemli@gmail.com>
62 Part of the linkgit:git[1] suite