Skip to content

Commit ddeab3a

Browse files
listxgitster
authored andcommitted
Documentation: git-init: list items facelift
No textual change. Signed-off-by: Linus Arver <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6e1ccac commit ddeab3a

File tree

1 file changed

+28
-21
lines changed

1 file changed

+28
-21
lines changed

Documentation/git-init.txt

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,37 @@ repository. When specified, the config variable "core.sharedRepository" is
7272
set so that files and directories under `$GIT_DIR` are created with the
7373
requested permissions. When not specified, Git will use permissions reported
7474
by umask(2).
75-
75+
+
7676
The option can have the following values, defaulting to 'group' if no value
7777
is given:
78+
+
79+
--
80+
'umask' (or 'false')::
81+
82+
Use permissions reported by umask(2). The default, when `--shared` is not
83+
specified.
84+
85+
'group' (or 'true')::
7886

79-
- 'umask' (or 'false'): Use permissions reported by umask(2). The default,
80-
when `--shared` is not specified.
81-
82-
- 'group' (or 'true'): Make the repository group-writable, (and g+sx, since
83-
the git group may be not the primary group of all users).
84-
This is used to loosen the permissions of an otherwise safe umask(2) value.
85-
Note that the umask still applies to the other permission bits (e.g. if
86-
umask is '0022', using 'group' will not remove read privileges from other
87-
(non-group) users). See '0xxx' for how to exactly specify the repository
88-
permissions.
89-
90-
- 'all' (or 'world' or 'everybody'): Same as 'group', but make the repository
91-
readable by all users.
92-
93-
- '0xxx': '0xxx' is an octal number and each file will have mode '0xxx'.
94-
'0xxx' will override users' umask(2) value (and not only loosen permissions
95-
as 'group' and 'all' does). '0640' will create a repository which is
96-
group-readable, but not group-writable or accessible to others. '0660' will
97-
create a repo that is readable and writable to the current user and group,
98-
but inaccessible to others.
87+
Make the repository group-writable, (and g+sx, since the git group may be not
88+
the primary group of all users). This is used to loosen the permissions of an
89+
otherwise safe umask(2) value. Note that the umask still applies to the other
90+
permission bits (e.g. if umask is '0022', using 'group' will not remove read
91+
privileges from other (non-group) users). See '0xxx' for how to exactly specify
92+
the repository permissions.
93+
94+
'all' (or 'world' or 'everybody')::
95+
96+
Same as 'group', but make the repository readable by all users.
97+
98+
'0xxx'::
99+
100+
'0xxx' is an octal number and each file will have mode '0xxx'. '0xxx' will
101+
override users' umask(2) value (and not only loosen permissions as 'group' and
102+
'all' does). '0640' will create a repository which is group-readable, but not
103+
group-writable or accessible to others. '0660' will create a repo that is
104+
readable and writable to the current user and group, but inaccessible to others.
105+
--
99106

100107
By default, the configuration flag `receive.denyNonFastForwards` is enabled
101108
in shared repositories, so that you cannot force a non fast-forwarding push

0 commit comments

Comments
 (0)