gpt4 book ai didi

git push挂掉导致网络问题

转载 作者:太空狗 更新时间:2023-10-29 13:25:31 25 4
gpt4 key购买 nike

场景是这样的:

我已经同步了 android 源代码 (aosp)。我想在我的存储库中创建一个它的“分支”。但是由于我无法找到一种方法来只 fork 一个特定的分支而不是整个仓库,所以我决定手动推送它。为此,我在 github 上创建了一个新的裸存储库。

我的项目有两个 Remote :

* aosp = https://android.googlesource.com/path_to_project.git
#The default remote using which I synced repo

* upstream = https://github.com/<my github user-name>/<newly created repo name>.git
#The remote I added manually

我尝试通过以下方法推送它:

#First added remote to that bare repository
git remote add upstream https://github.com/<my github user-name>/<newly created repo name>.git

#This is the branch for which I want to fork that project
git checkout -b kitkat-mr2.2-release

#I want the branch to be named kitkat in my own repo
git push -u upstream kitkat-mr2.2-release:kitkat

输出如下:

Counting objects: 869653, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (200676/200676), done.
Writing objects: 100% (869653/869653), 1.23 GiB | 101.65 MiB/s, done
Total 869653 (delta 582065), reused 867347 (delta 581182)

然后它就一直在那里。一点网络搜索告诉我它应该是这样,所以我认为这是正常的。但是一段时间后,我的整个互联网都停止工作了。系统监视器仍然显示正常的上传速度等,但我无法使用互联网。它开始在每个/任何网页上给我这个:

enter image description here

即使是我在手机上使用 wifi 打开的任何网页都会给出相同的结果。我必须重新启动我的调制解调器才能解决此错误/错误。

我还尝试在 git push 之前使用 git config http.postBuffer 1825361101(同样是网络搜索的结果),但它也无济于事。

请帮我解决这个问题。我是 github 的新手,仍在尝试解决很多问题。谢谢。

最佳答案

随着对问题的进一步研究,我发现了这个似乎有效的解决方案:

git config --global sendpack.sideband false

现在 git push 工作正常。

关于git push挂掉导致网络问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31156778/

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