gitosis vs gitolite? [英] gitosis vs gitolite?

查看:708
本文介绍了gitosis vs gitolite?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找安装git服务器与我的团队共享项目。我不想在需要使用git访问的每个开发人员使用SSH访问的服务器上创建用户帐户。
似乎有两个解决方案可以解决这个问题:gitosis& gitolite。

I am looking for installing a git server to share projects with my team. I don't want to create a user account on the server with SSH access for each developer that needs a git access. It seems there is two concurrent solutions that cover this issue : gitosis & gitolite.

我找不到两种解决方案之间的任何比较。它们之间的主要区别是什么?有没有其他类似的解决方案?

I could not find any comparison between both solutions. What are the main differences between them? Are there other similar solution?

推荐答案


我正在寻找安装git服务器来共享项目我的团队。

I am looking for installing a git server to share projects with my team.



您可以 使用git。



要让git服务器成为您在远程服务器上唯一需要的东西,那就是git。如果您不需要细粒度的权限(只与您的团队共享,这表示这是一种可能性)或任何额外的功能,您不需要gitolite或类似的功能。

You can just use git.

To have a git server the only thing you need on the remote server is git. If you don't require fine-grained permissions (sharing with only your team suggests that's a possibility) or any extra features, you don't need gitolite, or similar.

如果远程服务器上有git,您可以直接执行,而无需执行任何操作。

If git is available on the remote server, you can do what you're asking right now, without doing anything

ssh [user@]server
cd repos/are/here/
mkdir project.git
cd project.git
git init --bare

本地:

cd projects/are/here/project
git remote add origin [user@]server:repos/are/here/project.git
git push -u origin master



设置git服务器非常简单。



如果你想用一个专门的git用户来做事情,那么设置git服务器很短 - 因为它确实很容易做到。

Setting up a git server is easy.

If you want to do things with a dedicated git user, the docs for setting up a git server are short - because it really is quite easy to do.

总结:


  • 安装git

  • 创建一个名为git的用户

  • 将您和您的团队的公钥添加到git用户的 .ssh / authorized_keys 文件中

  • 将git用户的shell更改为 git-shell

  • 在服务器上创建回收站

  • 启动git pull / push到git@yourserver.com

  • Install git
  • Create a user named git
  • Add your and your team's public keys to the git user's .ssh/authorized_keys file
  • Change the git user's shell to be git-shell
  • Create repos on the server
  • start git pull/pushing to git@yourserver.com

仅限差异差异在使用专用的git用户而不使用git用户之间,如果你设置git用户使用 git-shell ,它不会允许自己做其他事情。不过,就充当git服务器而言,它与无安装解决方案相同。

The only difference between using a dedicated git user and not, is that if you setup the git user to use git-shell it won't allow itself to do anything else. In terms of acting as a git server though, it's identical to the no-install solution

这篇关于gitosis vs gitolite?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆