blob: cc95b69f27c3d4b5437fa15e3d1e825a7ae8576e [file] [log] [blame]
Junio C Hamano6926bef2007-06-16 09:54:051gitmodules(5)
2=============
3
4NAME
5----
6gitmodules - defining submodule properties
7
8SYNOPSIS
9--------
10gitmodules
11
12
13DESCRIPTION
14-----------
15
16The `.gitmodules` file, located in the top-level directory of a git
17working tree, is a text file with a syntax matching the requirements
Junio C Hamano35738e82008-01-07 07:55:4618of linkgit:git-config[1].
Junio C Hamano6926bef2007-06-16 09:54:0519
20The file contains one subsection per submodule, and the subsection value
21is the name of the submodule. Each submodule section also contains the
22following required keys:
23
24submodule.<name>.path::
25Defines the path, relative to the top-level directory of the git
26working tree, where the submodule is expected to be checked out.
27The path name must not end with a `/`. All submodule paths must
28be unique within the .gitmodules file.
29
30submodule.<name>.url::
31Defines an url from where the submodule repository can be cloned.
32
33
34EXAMPLES
35--------
36
37Consider the following .gitmodules file:
38
39[submodule "libfoo"]
40path = include/foo
41url = git://foo.com/git/lib.git
42
43[submodule "libbar"]
44path = include/bar
45url = git://bar.com/git/lib.git
46
47
48This defines two submodules, `libfoo` and `libbar`. These are expected to
49be checked out in the paths 'include/foo' and 'include/bar', and for both
50submodules an url is specified which can be used for cloning the submodules.
51
52SEE ALSO
53--------
Junio C Hamano35738e82008-01-07 07:55:4654linkgit:git-submodule[1] linkgit:git-config[1]
Junio C Hamano6926bef2007-06-16 09:54:0555
56DOCUMENTATION
57-------------
58Documentation by Lars Hjemli <hjemli@gmail.com>
59
60GIT
61---
Junio C Hamano35738e82008-01-07 07:55:4662Part of the linkgit:git[7] suite