使用 Web 界面设置 git 服务器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1627643/
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
Setting up git server with web interface?
提问by corydoras
As our company would never let a third party like github anywhere near our source code, is anyone aware of any software or setup guides or blogs on how to setup a scm server like github, ie it would support
由于我们公司永远不会让像 github 这样的第三方靠近我们的源代码,是否有人知道有关如何设置像 github 这样的 scm 服务器的任何软件或设置指南或博客,即它会支持
- Creation of repostories using a web interface
- Limiting/managing user access to individual repositories
- Browsing repositories online
- 使用 Web 界面创建存储库
- 限制/管理用户对单个存储库的访问
- 在线浏览存储库
If I can get this going I can see a potential mass migration from svn/cvs to git. (The only stumbling block I can see will be the windows Tortise SVN users having difficulty with the Git windows alternatives)
如果我能做到这一点,我可以看到从 svn/cvs 到 git 的潜在大规模迁移。(我能看到的唯一绊脚石是 Windows Tortise SVN 用户在使用 Git Windows 替代品时遇到困难)
采纳答案by ephemient
Gitoriousseems to support everything you ask for; its sources are freely availableand can be hosted on your own servers.
回答by Jakub Nar?bski
There are a few open source git hosting software / forges: both Gitorious(in Ruby) and InDefero(in PHP) have freely available source. The code used to manage repositories by repo.or.czis also open-source and freely available as Girocco.
有一些开源 git 托管软件/伪造:Gitorious(在 Ruby 中)和InDefero(在 PHP 中)都有免费可用的源代码。repo.or.cz用于管理存储库的代码也是开源的,可作为Girocco免费获得。
There is GitHub:FI"self-hosted" version of GitHub software... but it is proprietary and expensive.
有GitHub:FI“自托管”版本的 GitHub 软件......但它是专有的且价格昂贵。
There are even more git web interfaces: gitweb(in Perl, distributed with Git), cgit(in C, offers caching), git-phpand GitPHPand ViewGit(all in PHP), Ginatra(in Ruby, uses Sinatra framework). A few more can be found at InterfacesFrontendsAndToolspage on git wiki.
还有更多的 git web 界面:gitweb(在 Perl 中,与 Git 一起分发)、cgit(在 C 中,提供缓存)、git-php和GitPHP和ViewGit(全部在 PHP 中)、Ginatra(在 Ruby 中,使用 Sinatra 框架)。更多的可以在 git wiki 的InterfacesFrontendsAndTools页面上找到。
回答by ebneter
GitHub:FIis an "inside-the-firewall" edition of GitHub, and very slick. It's also a lot easier to install than gitorious. The downside is, it's very expensive. We looked but had to pass.
GitHub:FI是GitHub的“防火墙内”版本,非常流畅。它也比 gitorious 更容易安装。缺点是,它非常昂贵。我们看了,但不得不通过。
We opted for gitosis for repository management with github for browsing. The one thing it lacks is the ability to create a repository using a web interface, although I suspect that could be cobbled together.
我们选择使用 gitosis 进行存储库管理,使用 github 进行浏览。它缺少的一件事是使用 Web 界面创建存储库的能力,尽管我怀疑这可以拼凑在一起。
回答by user3801836
I tested my self on a virtual machine GitLab Community Edition
我在虚拟机GitLab 社区版上测试了自己
It works great. It is free (with some limitations).
它工作得很好。它是免费的(有一些限制)。
回答by Calculon
I found GitLab to be very very very resources hungry. Officially, you should have 4 GB of RAM, just to get started. This is not an option for a small virtual server.
我发现 GitLab 非常非常需要资源。正式开始,您应该拥有 4 GB 的 RAM。这不是小型虚拟服务器的选项。
Therefore, I recommend GitList, where you may even contribute yourself, if needed.
因此,我推荐GitList,如果需要,您甚至可以在其中贡献自己的力量。
回答by sh2ka
Use Gogs. It's a lightweight git server with web interface written in Go language. It looks like a github clone, but not at all. There is an internal bugtracker and wiki, but they can be replaced by external in settings. Take a look at it.
使用Gogs。它是一个轻量级的 git 服务器,带有用 Go 语言编写的 Web 界面。它看起来像一个 github 克隆,但根本不是。有一个内部错误跟踪器和 wiki,但它们可以在设置中由外部替换。看一看。
回答by user195595
I'm not sure what you are looking for but you might not need a web interface.
我不确定您在寻找什么,但您可能不需要 Web 界面。
You could also create a linux server and run git-deamon on it. Then you could use ssh to restrict user access. It is also possible to just create a network share and rescrict access that way.
您还可以创建一个 linux 服务器并在其上运行 git-deamon。然后您可以使用 ssh 来限制用户访问。也可以仅创建网络共享并以这种方式限制访问。
There are lots of web interfaces for browsing, but I have found none that would run on window out-of-the-box, that could also create/modify a repositorie. A lot of the web interfaces just won't work in windows. Or maybe I didn't looked hard enough... As mentioned before InterfacesFrontendsAndToolsis a great source to start looking.
有很多用于浏览的 Web 界面,但我发现没有一个可以在开箱即用的窗口上运行,也可以创建/修改存储库。许多 Web 界面在 Windows 中无法使用。或者,也许我看起来不够努力...... 正如之前提到的InterfacesFrontendsAndTools是一个很好的开始寻找的来源。
The only stumbling block I can see will be the windows Tortise SVN users having difficulty with the Git windows alternatives
我能看到的唯一绊脚石是 Windows Tortise SVN 用户在使用 Git Windows 替代品时遇到困难
Try GitExtensions, it is very easy.
试试GitExtensions,它很容易。