2015-07-01 54 views
5

這種情況是這樣的:Git push掛斷導致網絡問題

我有android源代碼(aosp)同步了。我想在存儲庫中創建一個「分支」。但由於我無法找到一種方法來分支一個特定的分支而不是整個回購,我決定手動推送它。爲此,我在github上創建了一個新的裸倉庫。

我的項目有兩個遙控器:

* 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相當陌生,仍然試圖找出很多東西。謝謝。

回答

2

隨着進一步研究的問題,我發現這個解決方案,它似乎工作:

git config --global sendpack.sideband false 

現在混帳推工作正常。