如何在 Bluehost 上安装 git 存储库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12599548/
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
How to install git repository on Bluehost
提问by Alexxandar
I've tried pretty much anything I could find on Google, if you enter: bluehost git repository all of the results on first page and some on second, I've tried. Also I've tried this very useful tutorial but not to much help, 8 ways to share your git repositorySo far this is what I got. When using HTTP method I can clone/fetch/pull repository to my computer but I can't push. It requires changes to be made to httpd.conf which is not possible on Bluehost. With CGI(http://en.bainternet.info/2012/how-to-git-over-http) method in conjunction with HTTP I always get 500 server error. And when using SSH since I do have access to SSH shell I get "The remote end hung up unexpectedly". Most of the tutorials found on Google are at least 6 months old, for example this(http://www.calzzani.com/blog/?p=92) one offers a very good solution, but
我已经尝试了几乎可以在 Google 上找到的任何内容,如果您输入:bluehost git repository 所有结果在第一页上,一些在第二页上,我已经尝试过了。此外,我已经尝试了这个非常有用的教程,但没有太大帮助,8 种共享 git 存储库的方法到目前为止,这就是我得到的。使用 HTTP 方法时,我可以将存储库克隆/获取/拉入我的计算机,但无法推送。它需要对 httpd.conf 进行更改,而这在 Bluehost 上是不可能的。将 CGI( http://en.bainternet.info/2012/how-to-git-over-http) 方法与 HTTP 结合使用,我总是收到 500 服务器错误。并且在使用 SSH 时,因为我确实可以访问 SSH shell,我得到“远程端意外挂断”。在谷歌上找到的大多数教程至少有 6 个月的历史,例如这个(http://www.calzzani.com/blog/?p=92) 提供了一个很好的解决方案,但是
I was messing around with my .bashrc file all morning before finding out that bluehost no longer allows remote paths to be accessed via non-interactive logins. If only I had discovered this 4 hours sooner!
在发现 bluehost 不再允许通过非交互式登录访问远程路径之前,我整个上午都在处理我的 .bashrc 文件。如果我早点发现这个 4 小时就好了!
I wasted more than 4 hours trying solutions out, can this be done?
我浪费了 4 个多小时来尝试解决方案,这可以做到吗?
回答by emeraldjava
It seems bluehost offer their own support topic for git installs now
似乎 bluehost 现在为 git 安装提供了自己的支持主题
回答by Reed Tothong
wholladay's link is helpful
but these articles also help me
wholladay 的链接很有帮助,
但这些文章也对我有帮助
simple process of installing git
http://willHymanson.org/blog/installing-git-bluehost-shared-hosting
安装git的简单过程
http://willHymanson.org/blog/installing-git-bluehost-shared-hosting
hosting a remote repo
http://www.calzzani.com/blog/?p=92
托管远程仓库
http://www.calzzani.com/blog/?p=92
hope these help
希望这些有帮助
回答by user10010966
You need to run:
你需要运行:
yum install git --disableexcludes=main --skip-broken