gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 07:38:43 28 4
gpt4 key购买 nike

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

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

最佳答案

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

It could be a bug in the way Git for Windows calls git-lfs.exe: if there is no console to use, there won't be a way to communicate with the user.
But then, maybe it does work with winpty as I suggested earlier (even if the OP indicated that it fails), that's why I want an MCVE.

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

仍然,尝试安装最新的 Git-Credential-Manager-for-Windows .
和/或在安装 very latest Git for Windows 后从命令行尝试相同的克隆(2.15.1.2 一个)。

OP OverCodingUnderSleeping添加 in the comments :

Oddly enough, seems like switching over to SourceTree from GitHub For Desktop solved it....

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

关于Github Desktop 和 LFS 无法从 github.com/.../git/info/lfs 获取某些对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47764272/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com