Git通过HTTPS可以ls列表,但不能克隆 [英] Git over HTTPS can ls-list but cannot clone

查看:231
本文介绍了Git通过HTTPS可以ls列表,但不能克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然这是一个常见的问题,这个是别人不同的,当我发布git ls-remote https://myuser@bitbucket.org/myser/repo.git ,它会要求我输入密码并提供结果:

While this is a common question, this one is particlary different than the others, when I issue git ls-remote https://myuser@bitbucket.org/myser/repo.git , it asks me for the password and gives me the result:

tomaz:~/ $ git ls-remote https://tcanabrava@bitbucket.org/tcanabrava/randrepo.git
Password: 
1c8cd7266ad19de952db096a0f25ee16dc3cdace        HEAD
1c8cd7266ad19de952db096a0f25ee16dc3cdace        refs/heads/master

但是当我发布git clone ...

but when I issue git clone...

tomaz:~/ $ $git clone https://tcanabrava@bitbucket.org/tcanabrava/randrepo.git
Cloning into 'felipao'...
Password: 
error: RPC failed; result=22, HTTP code = 401
fatal: The remote end hung up unexpectedly

我已经查看过所有谷歌答案这个特定的错误,没有什么可以解决它。

And I'v already looked over and over on all google answers for this particular error and nothing could fix it.


  1. 我确定地址是正确的,它使用ls-remote列出了分支。

  2. 已设置postBuffer = 52428800

  3. 代理正常,它使用ls-remote列出分支

  4. 使用GIT_CURL_VERBOSE = 1运行太长在这里发布不幸=(

  1. I'm sure that the address is correct, it lists the branches using ls-remote.
  2. already set the postBuffer = 52428800
  3. the proxies are fine, it lists the branches using ls-remote
  4. run with GIT_CURL_VERBOSE=1 too long to post here unfortunately =(


推荐答案

我有类似的问题。但是:

I had similiar problem. I'm not sure what helped, but:


  1. 我将Curl降级为7.25

  2. 我改变了网址格式.netrc http://stackoverflow.com/questions/5796171/git-clone-over-https-401-error-and-not-asking-for-username-or-password/5810821#5810821)

  3. 一切都是在git 1.7.10。我从1.8.0-1降级(拉和克隆WebDav只是不工作在这个版本。至于使用1.7创建的回答,如果有人知道为什么,请写入评论)。

这篇关于Git通过HTTPS可以ls列表,但不能克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆