无法从远程服务器中拉出

时间:2018-06-25 02:37:25

标签: git

我执行了git pull命令。但是有这个问题。

$ git pull
fatal: unable to access 'https://git.my_repository.com.vn/fsoft/meta-packages.git': The requested URL returned error: 403

http协议似乎有问题。我已经检查了连接-可以。

谁知道这个问题来自哪里?

3 个答案:

答案 0 :(得分:3)

我的网络上有静态路由

sudo route add -net 192.168.5.0/24 gw 10.88.124.165 dev eth0

在我的PC 192.168.5.1和上面的Gateway PC 10.88.124.165上输入以下命令。

git config --global http.proxy ""
git config --global http.sslVerify "false"

现在一切都很好。

答案 1 :(得分:0)

此错误可能是由于您在远程服务器上没有正确的权限或未得到正确的授权所致。

  

403禁止访问

     

服务器可以理解该请求,但拒绝对其进行授权。

     

希望公开为什么禁止请求的服务器可以在响应有效负载(如果有)中描述该原因。

     

如果请求中提供了身份验证凭据,则服务器认为它们不足以授予访问权限。客户端不应该自动使用相同的凭据重复请求。客户端可以用新的或不同的证书重复请求。但是,出于与凭据无关的原因,可能会禁止请求。

     

来源:HTTP Status Codes

您确定您已被授权并具有访问远程存储库的正确权限吗?

答案 2 :(得分:0)

可能是git版本,1.7.10与https连接存在一些问题。然后检查您是否配置了rometes:

git remote -v
# View existing remotes
origin  https://github.com/github/reactivecocoa.git (fetch)
origin  https://github.com/github/reactivecocoa.git (push)
git remote set-url origin https://github.com/github/ReactiveCocoa.git
# Change the 'origin' remote's URL
git remote -v
# Verify new remote URL
origin  https://github.com/github/ReactiveCocoa.git (fetch)
origin  https://github.com/github/ReactiveCocoa.git (push)

然后您可以git pull

来源https://help.github.com/articles/https-cloning-errors/

相关问题