kobelieve11 2019-03-24 11:16 采纳率: 0%
浏览 5212

git各种方式拉取gitlab中的项目都报错?

1.本人用的是mac os,拉取github和码云上的项目完全没问题。

2.已经用了最新版的git。

3.用http拉取的时候报以下错:

git clone http://git.xxx.com/root/xxxxxx.git
正克隆到 'xxxx'...
fatal: unable to access 'http://git.xxx.com/root/xxxxx.git/': Maximum (20) redirects followed

4.用https拉取的时候报这个错:

git clone https://git.xxx.com/root/xxxxx.git
正克隆到 'xxxxx'...
fatal: unable to access 'https://git.xxx.com/root/xxxxx.git/': Failed to connect to git.xxx.com port 443: Connection refused

5.用ssh拉取的时候报这个错:

 git clone git@git.xxx.com:root/xxxxx.git
 正克隆到 'xxxxx'...
 ssh: connect to host git.xxx.com port 22: Operation timed out
 fatal: 无法读取远程仓库。

请确认您有正确的访问权限并且仓库存在。

6.已经清过git的代理

7.能ping通gitlab,并且用其他机器拉取,所以肯定是本机的原因

  • 写回答

2条回答 默认 最新

  • xajh007atti 2019-03-25 15:00
    关注

    看上面显示就是没有权限啊,需要授权

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题