[ale] help with git local repo
DJ-Pfulio
DJPfulio at jdpfu.com
Fri Oct 30 11:39:49 EDT 2015
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?
>
--
Got Linux? Used on smartphones, tablets, desktop computers, media
centers, and
servers by kids, Moms, Dads, grandparents and IT professionals.
More information about the Ale
mailing list