[ale] help with git local repo

DJ-Pfulio DJPfulio at jdpfu.com
Fri Oct 30 12:06:31 EDT 2015


Make up a group for each different group of git users. Nothing special
here - just normal Unix permissions stuff for development teams who work
together.

BTW, no need to use ACLs, but you can if you like. I never do.

If you need a concrete example....let me now.

On 10/30/2015 11:53 AM, Chuck Payne wrote:
> JD,
> 
> What group did you use because I do see that everything is own by root
> that might be the issue now, the line added to the git-daemon help,
> but I am getting write errors. Did you create a group called it and
> add users to it?
> 
> On Fri, Oct 30, 2015 at 11:39 AM, DJ-Pfulio <DJPfulio at jdpfu.com> wrote:
>> I'm probably missing something basic, but ...
>>
>> Don't remember any tricks to setting up a git repo. Normal UNIX group
>> management stuff was it.
>>
>> Put all the project users into a unix group. Setup the "server" repo
>> with that group forcing that group to be used and maintain write.
>> chgrp ....
>> chmod -R g+rwx   ; on all directories: chmod g+s ....
>>
>> gitweb - never used it. Never needed that. ssh and git+ssh was all we
>> ever needed.
>>
>> There's a free "Pro Git" pdf online. Think I had to read 2-3 pages to
>> learn all I needed to know.
>>
>> Pushing ssh-keys is easy these days - use ssh-copy-id. It handles
>> permissions, appending as needed.
>>
>> On 10/30/2015 09:43 AM, Chuck Payne wrote:
>>> Guys,
>>>
>>> I am working with a developer to set up a local git repo. We are using
>>> Debian with git and gitweb. We have everything on the Debian side
>>> working we are able to pull repos, but we can't push back.  We have
>>> also installed git-daemon, and I have added to the repo
>>> git-daemon-export-ok under the .git directory.
>>>
>>> git config --list
>>>
>>>
>>> user.cepayne=User A
>>> user.email=user at mycompany.com
>>> user.name= Dr. Light
>>> core.repositoryformatversion=0
>>> core.filemode=true
>>> core.bare=true
>>> core.sharedrepository=1
>>> receive.denynonfastforwards=true
>>> git.receivepack=true
>>> http.receivepack=true
>>>
>>> Here the info I have, I am hoping someone one know what needs to be
>>> change, this is from the client side
>>>
>>> git clone git://mybox/project.git project
>>>
>>> cd project
>>>
>>> origin git://mybox/project.git (fetch)
>>> origin git://mybox/project.git (push)
>>>
>>> Start working with it. Add just a simple README file
>>>
>>> git add README
>>> git commit -m "test repo"
>>> git push origin master
>>>
>>> fatal: remote error: access denied or repository not exported: /project.git
>>>
>>> From the server
>>>
>>> Oct 30 09:31:19 mybox git-daemon[20427]: Connection from 10.0.10.200:58044
>>> Oct 30 09:31:19 mybox git-daemon[20427]: Extended attributes (29
>>> bytes) exist <host=mybox>
>>> Oct 30 09:31:19 mybox git-daemon[20427]: Request receive-pack for '/project.git'
>>> Oct 30 09:31:19 mybox git-daemon[20427]: 'receive-pack': service not
>>> enabled for '/var/cache/git/project.git/.git'
>>> Oct 30 09:31:19 my box git-daemon[26495]: [20427] Disconnected (with error)
>>>
>>> Is there something I need to change?
>>>


More information about the Ale mailing list