gpt4 book ai didi

git - 无法更新 Git 子模块

转载 作者:太空狗 更新时间:2023-10-29 14:19:54 26 4
gpt4 key购买 nike

我目前正在尝试从我的 git 存储库中克隆我的一些 vim 设置,该存储库主要包含其他托管项目的子模块。但是,当我尝试更新所有子模块时,出现以下错误。

Cloning into bundle/ack...
remote: Counting objects: 318, done.
remote: Compressing objects: 100% (189/189), done.
remote: Total 318 (delta 124), reused 256 (delta 70)
Receiving objects: 100% (318/318), 48.13 KiB, done.
Resolving deltas: 100% (124/124), done.
Submodule path 'bundle/ack': checked out 'fd9632b40ac07b39adb270311cde2c460c9ba6da'
Cloning into bundle/command-t...
remote: Counting objects: 2820, done.
remote: Compressing objects: 100% (1434/1434), done.
remote: Total 2820 (delta 1348), reused 2574 (delta 1122)
Receiving objects: 100% (2820/2820), 2.75 MiB | 701 KiB/s, done.
Resolving deltas: 100% (1348/1348), done.
Submodule path 'bundle/command-t': checked out '07087e16ba8fe0a87b1d1ccd03e158a0157dc1f8'
Cloning into bundle/fugitive...
error: RPC failed; result=22, HTTP code = 400
fatal: The remote end hung up unexpectedly
Clone of 'http://github.com/tpope/vim-fugitive.git' into submodule path 'bundle/fugitive' failed

然后我无法更新其余的插件。我正在通过 ssh(而不是 HTTPS)访问 github。另外,有没有办法单独更新我的其余插件(子模块)?

最佳答案

确保您可以重现问题:这有效吗?

 git clone http://github.com/tpope/vim-fugitive.git

(我刚刚测试过,克隆的很好)

这可能是由于某些 recent GitHub availability issue 造成的小故障:

14:22 UTC A small percentage of git repositories are currently unavailable due to emergency maintenance on one of our fileserver pairs.

其次,您的网址未使用 https:您可以尝试将网址切换为:

https://github.com/tpope/vim-fugitive
or
git@github.com:tpope/vim-fugitive.git

为此,对于 git 1.8.3+,你需要:

git submodule deinit bundle/fugitive
# edit .gitmodules
git submodule update --init bundle/fugitive

关于git - 无法更新 Git 子模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19215358/

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