version.
core.sharedRepository::
- If true, the repository is made shareable between several users
- in a group (making sure all the files and objects are group-writable).
- See gitlink:git-init-db[1]. False by default.
+ When 'group' (or 'true'), the repository is made shareable between
+ several users in a group (making sure all the files and objects are
+ group-writable). When 'all' (or 'world' or 'everybody'), the
+ repository will be readable by all users, additionally to being
+ group-shareable. When 'umask' (or 'false'), git will use permissions
+ reported by umask(2). See gitlink:git-init-db[1]. False by default.
core.warnAmbiguousRefs::
If true, git will warn you if the ref name you passed it is ambiguous
</div>\r
<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
-<p><em>git-init-db</em> [--template=<template_directory>] [--shared]</p>\r
+<p><em>git-init-db</em> [--template=<template_directory>] [--shared[=<permissions>]]</p>\r
</div>\r
<h2>OPTIONS</h2>\r
<div class="sectionbody">\r
</dt>\r
<dd>\r
<p>\r
- Provide the directory from which templates will be used.\r
- The default template directory is <tt>/usr/share/git-core/templates</tt>.\r
+Provide the directory from which templates will be used. The default template\r
+directory is <tt>/usr/share/git-core/templates</tt>.\r
</p>\r
+<p>When specified, <tt><template_directory></tt> is used as the source of the template\r
+files rather than the default. The template files include some directory\r
+structure, some suggested "exclude patterns", and copies of non-executing\r
+"hook" files. The suggested patterns and hook files are all modifiable and\r
+extensible.</p>\r
</dd>\r
<dt>\r
---shared\r
+--shared[={false|true|umask|group|all|world|everybody}]\r
</dt>\r
<dd>\r
<p>\r
- Specify that the git repository is to be shared amongst several users.\r
+Specify that the git repository is to be shared amongst several users. This\r
+allows users belonging to the same group to push into that\r
+repository. When specified, the config variable "core.sharedRepository" is\r
+set so that files and directories under <tt>$GIT_DIR</tt> are created with the\r
+requested permissions. When not specified, git will use permissions reported\r
+by umask(2).\r
</p>\r
+<p>The option can have the following values, defaulting to <em>group</em> if no value\r
+is given:</p>\r
+<ul>\r
+<li>\r
+<p>\r
+<em>umask</em> (or <em>false</em>): Use permissions reported by umask(2). The default,\r
+ when <tt>--shared</tt> is not specified.\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+<em>group</em> (or <em>true</em>): Make the repository group-writable, (and g+sx, since\r
+ the git group may be not the primary group of all users).\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+<em>all</em> (or <em>world</em> or <em>everybody</em>): Same as <em>group</em>, but make the repository\r
+ readable by all users.\r
+</p>\r
+</li>\r
+</ul>\r
</dd>\r
</dl>\r
</div>\r
template files.\r
An initial <tt>HEAD</tt> file that references the HEAD of the master branch\r
is also created.</p>\r
-<p>If <tt>--template=<template_directory></tt> is specified, <tt><template_directory></tt>\r
-is used as the source of the template files rather than the default.\r
-The template files include some directory structure, some suggested\r
-"exclude patterns", and copies of non-executing "hook" files. The\r
-suggested patterns and hook files are all modifiable and extensible.</p>\r
<p>If the <tt>$GIT_DIR</tt> environment variable is set then it specifies a path\r
to use instead of <tt>./.git</tt> for the base of the repository.</p>\r
<p>If the object storage directory is specified via the <tt>$GIT_OBJECT_DIRECTORY</tt>\r
environment variable then the sha1 directories are created underneath -\r
otherwise the default <tt>$GIT_DIR/objects</tt> directory is used.</p>\r
-<p>A shared repository allows users belonging to the same group to push into that\r
-repository. When specifying <tt>--shared</tt> the config variable "core.sharedRepository"\r
-is set to <em>true</em> so that directories under <tt>$GIT_DIR</tt> are made group writable\r
-(and g+sx, since the git group may be not the primary group of all users).</p>\r
<p>Running <tt>git-init-db</tt> in an existing repository is safe. It will not overwrite\r
things that are already there. The primary reason for rerunning <tt>git-init-db</tt>\r
is to pick up newly added templates.</p>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 15-Jul-2006 01:37:50 UTC\r
+Last updated 09-Aug-2006 01:00:28 UTC\r
</div>\r
</div>\r
</body>\r
SYNOPSIS
--------
-'git-init-db' [--template=<template_directory>] [--shared]
+'git-init-db' [--template=<template_directory>] [--shared[=<permissions>]]
OPTIONS
-------
+
+--
+
--template=<template_directory>::
- Provide the directory from which templates will be used.
- The default template directory is `/usr/share/git-core/templates`.
---shared::
- Specify that the git repository is to be shared amongst several users.
+Provide the directory from which templates will be used. The default template
+directory is `/usr/share/git-core/templates`.
+
+When specified, `<template_directory>` is used as the source of the template
+files rather than the default. The template files include some directory
+structure, some suggested "exclude patterns", and copies of non-executing
+"hook" files. The suggested patterns and hook files are all modifiable and
+extensible.
+
+--shared[={false|true|umask|group|all|world|everybody}]::
+
+Specify that the git repository is to be shared amongst several users. This
+allows users belonging to the same group to push into that
+repository. When specified, the config variable "core.sharedRepository" is
+set so that files and directories under `$GIT_DIR` are created with the
+requested permissions. When not specified, git will use permissions reported
+by umask(2).
+
+The option can have the following values, defaulting to 'group' if no value
+is given:
+
+ - 'umask' (or 'false'): Use permissions reported by umask(2). The default,
+ when `--shared` is not specified.
+
+ - 'group' (or 'true'): Make the repository group-writable, (and g+sx, since
+ the git group may be not the primary group of all users).
+
+ - 'all' (or 'world' or 'everybody'): Same as 'group', but make the repository
+ readable by all users.
+
+--
DESCRIPTION
An initial `HEAD` file that references the HEAD of the master branch
is also created.
-If `--template=<template_directory>` is specified, `<template_directory>`
-is used as the source of the template files rather than the default.
-The template files include some directory structure, some suggested
-"exclude patterns", and copies of non-executing "hook" files. The
-suggested patterns and hook files are all modifiable and extensible.
-
If the `$GIT_DIR` environment variable is set then it specifies a path
to use instead of `./.git` for the base of the repository.
environment variable then the sha1 directories are created underneath -
otherwise the default `$GIT_DIR/objects` directory is used.
-A shared repository allows users belonging to the same group to push into that
-repository. When specifying `--shared` the config variable "core.sharedRepository"
-is set to 'true' so that directories under `$GIT_DIR` are made group writable
-(and g+sx, since the git group may be not the primary group of all users).
-
Running `git-init-db` in an existing repository is safe. It will not overwrite
things that are already there. The primary reason for rerunning `git-init-db`
is to pick up newly added templates.
</dt>\r
<dd>\r
<p>\r
- If true, the repository is made shareable between several users\r
- in a group (making sure all the files and objects are group-writable).\r
- See <a href="git-init-db.html">git-init-db(1)</a>. False by default.\r
+ When <em>group</em> (or <em>true</em>), the repository is made shareable between\r
+ several users in a group (making sure all the files and objects are\r
+ group-writable). When <em>all</em> (or <em>world</em> or <em>everybody</em>), the\r
+ repository will be readable by all users, additionally to being\r
+ group-shareable. When <em>umask</em> (or <em>false</em>), git will use permissions\r
+ reported by umask(2). See <a href="git-init-db.html">git-init-db(1)</a>. False by default.\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 02-Aug-2006 21:12:16 UTC\r
+Last updated 09-Aug-2006 01:00:29 UTC\r
</div>\r
</div>\r
</body>\r