2012-01-16 26 views
0

我想通过我的网络服务器克隆我的Git项目部署,但我不能让它的工作使用VersionControl_Git梨包失败

<?  
require_once 'VersionControl/Git.php'; 

$git = new VersionControl_Git('/home/xxx/public_html/yyy'); 

$git->createClone('http://github.com/maysam/braincheck.git'); 

?> 

,但我得到一个错误:

Fatal error: Uncaught VersionControl_Git_Exception: Some errors in executing git command Output: Error: error: The requested URL returned error: 403 while accessing http://www.github.com/maysam/braincheck.git/info/refs fatal: HTTP request failed in /home/xxxx/php/VersionControl/Git.php on line 164 Exception trace #FunctionLocation 0VersionControl_Git_Util_Command->execute()/home/xxxx/php/VersionControl/Git.php:164 1VersionControl_Git- in /home/xxxx/php/VersionControl/Git/Util/Command.php on line 237

回答

0

我认为你需要使用一个git://的URL。

$git->createClone('git://github.com/maysam/braincheck.git'); 
+0

在执行命令GIT中输出一些错误:错误:github.com [0:207.97.227.239]:错误号=拒绝连接致命:无法连接的插座(连接被拒绝)在/家/黄埔/ PHP的/VersionControl/Git.php在线 – Maysam 2012-01-16 08:04:47