git 我可以在自己的服务器上运行 PHP 中的 Github 克隆吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4988238/
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
Is there a Github clone in PHP that I can run on my own server?
提问by Jason
I know there are plenty of ways to run git on my server, but I quite like the functionality of git with repo browsing - the fact that i can look at previous versions in the web interface.
我知道有很多方法可以在我的服务器上运行 git,但我非常喜欢 git 的 repo 浏览功能 - 事实上我可以在 Web 界面中查看以前的版本。
Now was I able to, I'd use github, but the problem is our source control rules are very strict and we aren't allowed to put files on other servers, even if they are encrypted.
现在我可以,我会使用 github,但问题是我们的源代码控制规则非常严格,我们不允许将文件放在其他服务器上,即使它们是加密的。
Is there a script that allows us to run a github like interface, or rather one that allows me to browse the revision history of the git project through a web interface?
有没有一个脚本可以让我们运行类似 github 的界面,或者更确切地说是一个允许我通过 Web 界面浏览 git 项目的修订历史记录的脚本?
I'm running a LAMP server, but would consider alternate languages like python, perl etc should nothing in php be available.
我正在运行 LAMP 服务器,但是如果 php 中没有可用的内容,我会考虑使用替代语言,如 python、perl 等。
interested in both paid and open source softwares
对付费和开源软件都感兴趣
采纳答案by Rafe Kettler
The webapp behind Gitoriousis open-source. You can have an interface exactly like it from your web server. It doesn't have all the Github bells and whistles but it has source browsing, revision history, commits, etc.
Gitorious背后的 webapp是开源的。您可以从 Web 服务器获得与它完全相同的界面。它没有 Github 的所有花里胡哨,但它有源浏览、修订历史、提交等。
It's rails, which might not be optimal for you, but it's also free :-)
它是导轨,它可能不适合您,但它也是免费的 :-)
回答by Greg Hewgill
Git itself comes with Gitweb, which is a basic browser interface to a Git repository. It allows browsing arbitrary versions of the tree.
Git 本身带有Gitweb,它是 Git 存储库的基本浏览器界面。它允许浏览树的任意版本。
You can see Gitweb in action at http://git.kernel.org
你可以在http://git.kernel.org看到 Gitweb 的运行情况
回答by Chuck Burgess
I know this is a late response, but there is a fabulous PHP application call gitlist. http://gitlist.org/
我知道这是一个迟到的响应,但是有一个很棒的 PHP 应用程序调用 gitlist。http://gitlist.org/
It works great and looks beautiful.
它工作得很好,看起来很漂亮。
回答by Peer Allan
If you are willing to pay you can get your own installation of Github. It's called Github Enterpriseand it charges on a per user basis (roughly $5000/year for every 20-seat license). They provide you with a VM and you supply the infrastructure to run it on.
如果你愿意付费,你可以自己安装 Github。它被称为Github Enterprise,它按用户收费(每 20 个席位许可证大约 5000 美元/年)。他们为您提供 VM,而您提供运行它的基础架构。