aboutsummaryrefslogtreecommitdiffstats
path: root/git-init-acl.1
blob: 2bf8b1295754c5c3d7620a7c5a22737b837bd094 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.Dd July 19, 2021
.Dt GIT-INIT-ACL 1
.Os
.Sh NAME
.Nm git-init-acl
.Nd create and share a git repository amongst multiple users
.Sh SYNOPSIS
.Nm git init-acl
.Ar directory
.Op Ar user...
.Sh DESCRIPTION
.Nm
creates (or reinitializes) a git repository at
.Ar directory
and grants the owner and all other specified users write access to it.
Access rights are stored in POSIX Access Control Lists as per
.Xr acl 5 .
.Pp
It is safe to run this command on an already existing git repository.
Previously unauthorized users that are included in the subsequent
invocation will be granted write access.
.Pp
.Nm
only ever grants access.
If you need to remove access for a user, use the following
invocation of
.Xr setfacl 1
instead:
.Bd -literal -offset indent
setfacl -Rnx 'u:<user>,d:u:<user>' <repository>
.Ed
.Sh SEE ALSO
.Xr getfacl 1 ,
.Xr git 1 ,
.Xr git-init 1 ,
.Xr setfacl 1 ,
.Xr acl 5
.Sh AUTHORS
.An -nosplit
.Nm
was written by
.An Wolfgang Müller Aq Mt wolf@oriole.systems .