git clone資源獲取失敗解決

2022-08-19 16:18:13 字數 695 閱讀 5500

github上轉殖乙個倉庫到本地,一直失敗。還以為是git安裝問題,解除安裝重灌無效;又換了個大容量的磁碟目錄位置;最後ecs系統也重灌還是無效。。

remote: counting objects: 5148, done.

remote: compressing objects: 100% (16/16), done.

error: rpc failed; curl 18 transfer closed with outstanding read data remaining

fatal: the remote end hung up unexpectedly

fatal: early eof

fatal: index-pack failed

然後google了下(為什麼我不一開始就搜尋。。。想當然瞎折騰)

原因是要轉殖的倉庫太大,檔案多,導致git clone失敗。

解決:

git config --global http.postbuffer 524288000

git config --list

git clone  --depth 1  # target.git 為目標位址

cd target

git fetch --unshallow

資源獲取總結

b 資源獲取總結 b spring提供了很多 resource 的實現,下面對以下四種進行總結 以spring in actiong 中第乙個例子為背景討論 spring版的helloworld color red 程式清單1.1greetingservice介面,將實現與介面分離出來 color ...

Servlet獲取資源

servlet上下文,每個web工程都只有乙個servletcontext物件,也就是不管在哪個servlet裡面,獲取到的這個類的物件都是同乙個 如何得到物件?獲取物件 servletcontext context getservletcontext 有什麼作用?1 獲取全域性配置引數 2 獲取w...

php 陣列獲取失敗

原創不易,希望支援原創文章 今天,對獲取的陣列因為要進行過濾,用foreach迴圈後,要刪除用unset刪除後,在後台獲取到的json解析後,發現陣列獲取不到,而且有些獲取得到,有些獲取不到,糾結了很久後,把json資料拿出來格式化了下,發現,原來的陣列,前面多了個小數字,從1開始 後來才注意到這點...