threads / discuss / 21736

git init --bare --shared=group

Subject: git init --bare --shared=group

## tl;dr

2 messages between Nov 24, 2009 and Nov 24, 2009.

replies: 1people: 2as markdown or json

Eric Schaefer· Nov 24, 2009, 13:05 UTC · lore
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· Nov 24, 2009, 13:25 UTC · re: Eric Schaefer · lore

Re: git init --bare --shared=group

Hi,
On Tue, 24 Nov 2009, Eric Schaefer wrote:
Show 8 quoted lines
> 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

← back to recent threads