Github Desktop和LFS无法从github.com/.../git/info/lfs获取某些对象

时间:2017-12-12 02:00:15

标签: github git-lfs github-desktop

这是故事,我们让GitHub工作并使用Gi​​tDesktop 1.0.10 我们也使用来自https://github.com/blog/2432-git-lfs-2-3-0-released的Git LFS 2.3.0 ...两个开发人员能够克隆并推送repo而不会出现问题,其中一个问题如下:

WARNING: 'git lfs clone' is deprecated and will not be updated
          with new flags from 'git clone'
'git clone' has been updated in upstream Git to have comparable
speeds to 'git lfs clone'.
'git clone' has been updated in upstream Git to have comparable
speeds to 'git lfs clone'.
Cloning into 'C:\Git\SomeRepo'...
remote: Counting objects: 28847, done.        
remote: Compressing objects:   0% (1/331)           
remote: Compressing objects:   1% (4/331)           
remote: Compressing objects:   2% (7/331)           
...
remote: Compressing objects:  98% (325/331)           
remote: Compressing objects:  99% (328/331)           
remote: Compressing objects: 100% (331/331)           
remote: Compressing objects: 100% (331/331), done.        
Receiving objects:   0% (1/28847)   
Receiving objects:   1% (289/28847)   
Receiving objects:   2% (577/28847)   
Receiving objects:   3% (866/28847)   
...
Receiving objects:  96% (27694/28847), 974.57 MiB | 21.10 MiB/s   
Receiving objects:  97% (27982/28847), 974.57 MiB | 21.10 MiB/s   
Receiving objects:  98% (28271/28847), 974.57 MiB | 21.10 MiB/s   
Receiving objects:  99% (28559/28847), 974.57 MiB | 21.10 MiB/s   
remote: Total 28847 (delta 547), reused 598 (delta 424), pack-reused 28092        
Receiving objects: 100% (28847/28847), 974.57 MiB | 21.10 MiB/s   
Receiving objects: 100% (28847/28847), 979.90 MiB | 20.95 MiB/s, done.
Resolving deltas:   0% (0/16327)   
Resolving deltas:   1% (306/16327)   
Resolving deltas:   2% (343/16327)   
Resolving deltas:   5% (822/16327)   
Resolving deltas:   7% (1162/16327)   
...
Resolving deltas:  98% (16033/16327)   
Resolving deltas:  99% (16175/16327)   
Resolving deltas: 100% (16327/16327)   
Resolving deltas: 100% (16327/16327), done.
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
batch response: Git credentials for 
https://github.com/SomeOrg/SomeProject.git not found:
exit status 1
error: failed to fetch some objects from 'https://github.com/SomeOrg/SomeProject.git/info/lfs'

我试过了:

  • 使用非工作机器上的工作凭据登录
  • 卸载并重新安装Github Desktop
  • 删除文件,强制重新安装Github Desktop以再次请求设置
  • 已禁用防火墙

非常感谢这里的任何帮助,在此先感谢!

1 个答案:

答案 0 :(得分:0)

这似乎是git-lfs/git-lfs issue 2349Git for Windows issue 1192

中描述的错误
  
    

这可能是Git for Windows调用git-lfs.exe的方式中的错误:如果没有可供使用的控制台,则无法与用户进行通信。
    但是,也许它可以像我之前提到的那样与winpty一起工作(即使OP表明它失败了),这就是我想要MCVE的原因。

  
     

@dscho我认为这很可能。在我的测试中,当Git for Windows调用时,我无法让LFS看到pty / tty。我已经设置了一个测试存储库,我已经使用https://github.com/ttaylorr/lfs-gfw-bug

重现了该错误

尽管如此,请尝试安装最新的Git-Credential-Manager-for-Windows 和/或在安装very latest Git for Windows2.15.1.2之后)从命令行尝试相同的克隆。

OP OverCodingUnderSleeping添加in the comments

  

奇怪的是,似乎从GitHub切换到SourceTree For Desktop解决了它....

这意味着SourceTree要么使用" System" Git或嵌入式的,可能不会出现相同的错误:检查设置。