3

这是故事,我们有 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 再次请求设置
  • 禁用防火墙

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

4

1 回答 1

0

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

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

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

不过,尝试安装最新的Git-Credential-Manager-for-Windows和/或在安装最新的适用于 Windows的 Git(2.15.1.2 版本
) 之后,从命令行尝试相同的克隆。

OP OverCodingUnderSleeping在评论中添加:

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

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

于 2017-12-12T06:01:15.200 回答