git Gitosis 替代品?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2557706/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 08:10:45  来源:igfitidea点击:

Gitosis alternative?

gitversion-controlgitosis

提问by AndyL

Are there alternatives to gitosisthat are easier to use?

是否有更易于使用的gitosis替代品?

I currently run gitosis on a Ubuntu server for my lab. We regularly add new users and repos. I find the gitosis.confsyntax non-intuitive, and if I make even a minor mistake the whole gitosis system fails, see for example this question on SO.When gitosis fails it also kills access to the git repository that contains gitosis.conf... go figure... There must be a better way.

我目前在我实验室的 Ubuntu 服务器上运行 gitosis。我们会定期添加新用户和存储库。我发现gitosis.conf语法不直观,如果我犯了一个小错误,整个 gitosis 系统就会失败,例如,请参阅SO 上的这个问题。当 gitosis 失败时,它也会终止对包含gitosis.conf...的 git 存储库的访问... 必须有更好的方法。

I've thought about private GitHub accounts, but is there anything else that I could host locally?

我已经考虑过私人 GitHub 帐户,但还有什么我可以在本地托管的吗?

采纳答案by AndyL

I ended up just paying for GitHub. Here is what I tried:

我最终只为GitHub付费。这是我尝试过的:

  • Gitolite: The install is actually tricky. I ran into lots of SSH key trouble which was compounded by the fact that I first tried installing from a windows workstation. Also, Gitolite requires a server running Git 1.6, but Ubuntu stable on my server only runs Git 1.5. I could have compiled newer git from source, but by that point I had already sank 3 hours into my gitolite install.

  • Gitorious: Gitorious requires ruby, mysql, and a gazillion gems and packages. As @calmh said,

    Gitorious is wonderful when up and running. It's a nightmare to get there...

  • Gitolite:安装实际上很棘手。我遇到了很多 SSH 密钥问题,因为我第一次尝试从 Windows 工作站安装,这使问题更加复杂。此外,Gitolite 需要运行 Git 1.6 的服务器,但我服务器上的 Ubuntu stable 仅运行 Git 1.5。我本可以从源代码编译更新的 git,但是到那时我已经花了 3 个小时来安装 gitolite。

  • Gitorious:Gitorious 需要 ruby​​、mysql 和无数的 gems 和包。正如@calmh 所说,

    启动和运行时,Gitorious 非常棒。到达那里真是一场噩梦......

At that point I decided to go with GitHub:

那时我决定使用GitHub

  • GitHub: $50/month gets 50 private repositories, 25 collaborators and 6 GB of space. Individual users can easily add additional SSH keys themselves and its trivial for my colleague and me to create new repos for our coworkers. I usually like the free DIY solution, but in this case the money really is well worth it.
  • GitHub: 每月 50 美元可获得 50 个私有存储库、25 个协作者和 6 GB 的空间。个人用户可以轻松地自己添加额外的 SSH 密钥,这对于我和我的同事为我们的同事创建新的存储库来说是微不足道的。我通常喜欢免费的 DIY 解决方案,但在这种情况下,钱真的很值得。

Final thought: It would be great if TurnkeyLinuxcould one day improve their revision control applianceto include gitorious by default.

最后的想法:如果有朝一日 TurnkeyLinux能够改进他们的版本控制设备在默认情况下包含 gitorious ,那就太好了

回答by Mark Lodato

Gitolitemight be a solution.

Gitolite可能是一个解决方案。

回答by realcnbs

I was using github, but it becomes too expensive while number of your projects grows. And the way it manages public keys is not very satisfying. For example you can't add two identical keys for two different repos, you are forced to add is as global key (correct me if i am wrong).

我正在使用 github,但是随着您的项目数量的增长,它变得太贵了。而且它管理公钥的方式也不是很令人满意。例如,您不能为两个不同的存储库添加两个相同的密钥,您必须将 is 添加为全局密钥(如果我错了,请纠正我)。

I found that having a slicehost slice (or whatever you use) with gitolite is much cheaper. Gitolite installation and management is very easy and straightforward. And if you need a web interface there are options to choose from, but i personally don't need it, and never used this feature on github. Access control os very powerfull and easy in same time. And there are ways to install it not having a root access to your host.

我发现使用 gitolite 切片主机切片(或您使用的任何东西)要便宜得多。Gitolite 的安装和管理非常简单直接。如果你需要一个 web 界面,有很多选项可供选择,但我个人不需要它,而且从未在 github 上使用过这个功能。同时访问控制系统非常强大和简单。并且有一些方法可以在没有对主机的 root 访问权限的情况下安装它。

And you can use your server for hosting too, not paying another monthly fee. I wrote an tutorial on how to setup gitolite on ubuntu which is super easy (in contrast to girroco).

您也可以使用您的服务器进行托管,而无需支付额外的月费。我写了一篇关于如何在 ubuntu 上设置 gitolite 的教程,这非常简单(与 girroco 相比)。

You can read it here

你可以在这里阅读

回答by realcnbs

Fairly old thread, but just for completeness, it's worth looking at BitBucket- as one user mentioned, GitHub can get expensive for a lot of private repos, but BB offers unlimited private repos for free - so far, I've not had any issues with git access.

相当旧的线程,但只是为了完整性,值得一看BitBucket- 正如一位用户所提到的,GitHub 的大量私有存储库可能会变得昂贵,但 BB 免费提供无限的私有存储库 - 到目前为止,我没有遇到任何问题使用 git 访问。

HTH

HTH

回答by Stefan N?we

What about the system that drives http://repo.or.cz: Girocco

驱动http://repo.or.cz的系统怎么样:Girocco

...or gitorious

......或巨大的

回答by Sytse Sijbrandij

Consider using GitLab, you can configure access via the web ui. (disclosure: I'm a co-founder of GitLab.com). It is the most installed git management system and includes merge requests, line comments, a wiki and an issue tracker.

考虑使用GitLab,您可以通过 web ui 配置访问。(披露:我是 GitLab.com 的联合创始人)。它是安装最多的 git 管理系统,包括合并请求、行注释、wiki 和问题跟踪器。

回答by ebneter

I actually just wrote a couple of simple python scripts to help with user and repo creation for just the reason you mention. I suspect I could get my boss to let me open source them -- basically, though, they read and write the config file used by gitosis with the help of a python library called configobj. I set them up so that they can run either as command line scripts or as cgi scripts with a little web interface.

实际上,我只是出于您提到的原因编写了几个简单的 Python 脚本来帮助创建用户和存储库。我怀疑我可以让我的老板让我开源它们——不过,基本上,他们在名为configobj的 python 库的帮助下读写 gitosis 使用的配置文件。我对它们进行了设置,以便它们可以作为命令行脚本或带有小网络界面的 cgi 脚本运行。

回答by Bill

We have looked a number of solutions and none of them work well from an administrative standpoint. We had initially passed over Gerrit, thinking that it was only for code reviews, but I think it deserves a second look. It also does authorization and authentication, and a workflow component, so you can trigger builds upon commits or positive reviews.

我们已经研究了许多解决方案,但从管理的角度来看,没有一个能很好地工作。我们最初忽略了 Gerrit,认为它仅用于代码,但我认为它值得再看一看。它还进行授权和身份验证,以及一个工作流组件,因此您可以根据提交或正面评论触发构建。

回答by Anish

  1. Gitolite as nice features like branch level access control and has good documentation. Easy to setup. Least dependencies.

  2. For readonly web access , gitweb shall be used along with gitolite.

  3. Gitorious is too difficult to setup and has too many dependencies.

  4. Gitorious requires passenger , if you are using Apache, it becomes too complex setup if you have any other rails application using another version of ruby.

  1. Gitolite 具有不错的功能,例如分支级别的访问控制,并且具有良好的文档。易于设置。最少的依赖。

  2. 对于只读网络访问,gitweb 应与 gitolite 一起使用。

  3. Gitorious 设置太难,依赖太多。

  4. Gitorious 需要乘客,如果您使用 Apache,如果您有任何其他使用 ruby​​ 版本的其他 rails 应用程序,则设置会变得过于复杂。

For an overview of Gitolite features watch Gitolite by Sitaram

有关 Gitolite 功能的概述,请观看Sitaram 的 Gitolite

回答by Michael Munsey

scm-managerisn't as full featured as gitosis, but it is easy to host git, mercurial, and svn repositories with web admin, checkins and diff tracking.

scm-manager不像 gitosis 那样功能齐全,但它很容易托管 git、mercurial 和 svn 存储库,并带有 web 管理、签入和差异跟踪。