【问题标题】:Github Desktop and LFS failed to fetch some objects from github.com/.../git/info/lfsGithub Desktop 和 LFS 无法从 github.com/.../git/info/lfs 获取一些对象
【发布时间】:2017-12-12 02:00:15
【问题描述】:

故事是这样的,我们正在使用 GitHub,并且正在使用 GitDesktop 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 以再次请求设置
  • 禁用防火墙

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

【问题讨论】:

  • @ThomasSmyth 我刚刚做了。

标签: github git-lfs github-desktop


【解决方案1】:

这似乎是git-lfs/git-lfs issue 2349Git for Windows issue 1192 中描述的错误

这可能是 Windows 版 Git 调用 git-lfs.exe 的方式中的一个错误:如果没有可使用的控制台,将无法与用户交流。
但是,也许它确实可以与我之前建议的 winpty 一起使用(即使 OP 表明它失败了),这就是我想要 MCVE 的原因。

@dscho 我认为这很有可能。在我的测试中,当被 Windows 的 Git 调用时,我无法让 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 For Desktop 切换到 SourceTree 解决了它....

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

【讨论】:

  • 感谢您对@VonC 进行尝试 - 不幸的是,最新的 GCM for Windows 解决方案不起作用,命令行解决方案也不起作用。在这上面拔出花白的头发!
  • 奇怪的是,似乎从 GitHub For Desktop 切换到 SourceTree 解决了它....
  • @OverCodingUnderSleeping 太棒了!我已将您的评论包含在答案中以提高知名度。
猜你喜欢
  • 2022-06-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-09-19
  • 2019-07-15
  • 1970-01-01
  • 2023-01-04
相关资源
最近更新 更多