46
use with dumb transports but otherwise is OK as long as
47
`objects/info/alternates` points at the object stores it
48
borrows from.
49
++
50
+This directory is ignored if $GIT_COMMON_DIR is set and
51
+"$GIT_COMMON_DIR/objects" will be used instead.
52
53
objects/[0-9a-f][0-9a-f]::
54
A newly created object is stored in its own file.
95
References are stored in subdirectories of this
96
directory. The 'git prune' command knows to preserve
97
objects reachable from refs found in this directory and
95
- its subdirectories.
98
+ its subdirectories. This directory is ignored if $GIT_COMMON_DIR
99
+ is set and "$GIT_COMMON_DIR/refs" will be used instead.
100
101
refs/heads/`name`::
102
records tip-of-the-tree commit objects of branch `name`
118
packed-refs::
119
records the same information as refs/heads/, refs/tags/,
120
and friends record in a more efficient way. See
117
- linkgit:git-pack-refs[1].
121
+ linkgit:git-pack-refs[1]. This file is ignored if $GIT_COMMON_DIR
122
+ is set and "$GIT_COMMON_DIR/packed-refs" will be used instead.
123
124
HEAD::
125
A symref (see glossary) to the `refs/heads/` namespace
138
is often called 'detached HEAD.' See linkgit:git-checkout[1]
139
for details.
140
141
+config::
142
+ Repository specific configuration file. This file is ignored
143
+ if $GIT_COMMON_DIR is set and "$GIT_COMMON_DIR/config" will be
144
+ used instead.
145
+
146
branches::
147
A slightly deprecated way to store shorthands to be used
148
to specify a URL to 'git fetch', 'git pull' and 'git push'.
150
'name' can be given to these commands in place of
151
'repository' argument. See the REMOTES section in
152
linkgit:git-fetch[1] for details. This mechanism is legacy
143
- and not likely to be found in modern repositories.
153
+ and not likely to be found in modern repositories. This
154
+ directory is ignored if $GIT_COMMON_DIR is set and
155
+ "$GIT_COMMON_DIR/branches" will be used instead.
156
+
157
158
hooks::
159
Hooks are customization scripts used by various Git
162
default. To enable, the `.sample` suffix has to be
163
removed from the filename by renaming.
164
Read linkgit:githooks[5] for more details about
152
- each hook.
165
+ each hook. This directory is ignored if $GIT_COMMON_DIR is set
166
+ and "$GIT_COMMON_DIR/hooks" will be used instead.
167
+
168
169
index::
170
The current index file for the repository. It is
176
177
info::
178
Additional information about the repository is recorded
164
- in this directory.
179
+ in this directory. This directory is ignored if $GIT_COMMON_DIR
180
+ is set and "$GIT_COMMON_DIR/index" will be used instead.
181
182
info/refs::
183
This file helps dumb transports discover what refs are
217
when interacting with remote repositories via 'git fetch',
218
'git pull' and 'git push' commands. See the REMOTES section
219
in linkgit:git-fetch[1] for details. This mechanism is legacy
204
- and not likely to be found in modern repositories.
220
+ and not likely to be found in modern repositories. This
221
+ directory is ignored if $GIT_COMMON_DIR is set and
222
+ "$GIT_COMMON_DIR/remotes" will be used instead.
223
224
logs::
207
- Records of changes made to refs are stored in this
208
- directory. See linkgit:git-update-ref[1]
209
- for more information.
225
+ Records of changes made to refs are stored in this directory.
226
+ See linkgit:git-update-ref[1] for more information. This
227
+ directory is ignored if $GIT_COMMON_DIR is set and
228
+ "$GIT_COMMON_DIR/logs" will be used instead.
229
230
logs/refs/heads/`name`::
231
Records all changes made to the branch tip named `name`.
236
shallow::
237
This is similar to `info/grafts` but is internally used
238
and maintained by shallow clone mechanism. See `--depth`
220
- option to linkgit:git-clone[1] and linkgit:git-fetch[1].
239
+ option to linkgit:git-clone[1] and linkgit:git-fetch[1]. This
240
+ file is ignored if $GIT_COMMON_DIR is set and
241
+ "$GIT_COMMON_DIR/shallow" will be used instead.
242
243
modules::
223
- Contains the git-repositories of the submodules.
244
+ Contains the git-repositories of the submodules. This
245
+ directory is ignored if $GIT_COMMON_DIR is set and
246
+ "$GIT_COMMON_DIR/modules" will be used instead.
247
248
SEE ALSO
249
--------