# git init --bare --shared=group

2 messages from 2009-11-24 to 2009-11-24. Participants: Eric Schaefer, Johannes Schindelin.
Thread: https://gitlist.dev/t/21736

## Eric Schaefer, 2009-11-24 13:05

Subject: git init --bare --shared=group
Message-ID: <34f8975d0911240505k4727fef2n8ef0efd3533aef1e@mail.gmail.com>
URL: https://gitlist.dev/e/34f8975d0911240505k4727fef2n8ef0efd3533aef1e%40mail.gmail.com

```
Hello List,

according to 'git help init' would --shared=group "Make the repository
group-writable".
I extracted a bare repo out of my local repo and scp'ed it to the
server. There I did a 'git init --bare --shared=group'. It created the
branches dir (there were no branches yet) and the config file and set
the correct permissions. But it did not do so with the existsing files
and dirs. Is it suffient to 'chmod -R g+ws .' or is there anything
else to do to make the repo writeable for my group?

Thanks,
Eric

```

## Johannes Schindelin, 2009-11-24 13:25

Subject: Re: git init --bare --shared=group
Message-ID: <alpine.DEB.1.00.0911241424280.4758@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0911241424280.4758%40intel-tinevez-2-302
In-Reply-To: <34f8975d0911240505k4727fef2n8ef0efd3533aef1e@mail.gmail.com>

```
Hi,

On Tue, 24 Nov 2009, Eric Schaefer wrote:

> according to 'git help init' would --shared=group "Make the repository
> group-writable".
> I extracted a bare repo out of my local repo and scp'ed it to the
> server. There I did a 'git init --bare --shared=group'. It created the
> branches dir (there were no branches yet) and the config file and set
> the correct permissions. But it did not do so with the existsing files
> and dirs. Is it suffient to 'chmod -R g+ws .' or is there anything
> else to do to make the repo writeable for my group?

That should be enough, if all files and directories belong to the correct
group.  Otherwise, you should 'chown -R .group .', too.

Ciao,
Dscho

```
