开发者

projects and gitolite remote on same machine

开发者 https://www.devze.com 2023-04-10 12:49 出处:网络
I\'m trying to setup a new development server that also will serve as a git remote host. Some people will be developing on the server and push to the remote and some use there own machine and push to

I'm trying to setup a new development server that also will serve as a git remote host.

Some people will be developing on the server and push to the remote and some use there own machine and push to the server when there done.

We are usin开发者_运维问答g gitolite to facilitate those who work on there own machine so the can push and pull with there private key.

The problem now is that those working on the server itself have a hard time cloning, pushing and pulling. There are always permission problems with are hard to get around.

It just doest feel like this is the way it should work, so i was wondering if our setup is right or are we just using it in the wrong way (maybe we don't even need gitolite?)


gitolite isn't really designed to also support people cloning on the local machine, since it does all of its permissions magic via ssh hooks.

You could just have those working on the server clone via SSH anyways, to make sure everyone's process is paralleled. Thus, instead of the people on the local machine doing this:

git clone /path/to/repo

have them do this:

git clone git@localhost:path/to/repo

(And set up their ssh keys in gitolite as you do for everyone else.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号