2016-09-07 276 views
4

我能夠拉,但無法混帳推推送操作錯誤:解壓失敗:指數包裝異常退出

$ git push -u origin master 
Counting objects: 2031, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (1367/1367), done. 
remote: fatal: early EOF 
Writing objects: 100% (2031/2031), 34.33 MiB | 100.00 KiB/s, done. 
Total 2031 (delta 659), reused 1056 (delta 324) 
error: unpack failed: index-pack abnormal exit 
To https://*********.git 
! [remote rejected] master -> master (unpacker error) 
error: failed to push some refs to 'https://********* 

我曾嘗試:

  • 混帳改裝
  • 混帳混帳配置 - 全球core.compression 0

我已經提到以下鏈接,但沒有任何工作對我來說

Git push failed - unpack-objects abnormal exit

fatal: early EOF fatal: index-pack failed

Git push fails with "fatal: early EOF" when PUSHing but only on one file

其他git的用戶都能夠推到同一回購,通常當犯下大沒有新的文件被添加

出現此問題

上述解決方案都沒有幫助,我卡住了。

感謝

編輯

也試過

[core] 
packedGitLimit = 512m 
packedGitWindowSize = 512m 
[pack] 
deltaCacheSize = 2047m 
packSizeLimit = 2047m 
windowMemory = 2047m 
+0

設備上是否有足夠的空間?來源:http://stackoverflow.com/a/23978298/2394026 – Flows

回答

0

如果您是git的管理員,連接託管Git倉庫的服務器上。在那裏,進入objects文件夾。應該有根擁有者的文件夾,這是你的問題。

將文件夾所有者更改爲與其他文件夾(非root)相同。

+0

我不是git管理員,其他git用戶可以推到相同的回購,通常這個問題發生時,在提交大文件沒有添加 –

+0

好。我知道這個問題與根權限,但沒有與文件數量。抱歉。你可以拆分你的提交以解決問題 – Flows

4

嘗試使用git push的--no-thin選項。

$ git push --no-thin 

https://git-scm.com/docs/git-push

--[no-]thin

These options are passed to git-send-pack[1]. A thin transfer significantly reduces the amount of sent data when the sender and receiver share many of the same objects in common. The default is --thin.

我們的團隊一直在努力與此相同的問題,並嘗試了所有在OP鏈接中提到的修復/解決方法,有各種成功。對某些人有用的東西不適用於其他人,幾個月後也不會爲同一人工作。到目前爲止,--no-thin選項一直運行良好。

+0

非常感謝。它適用於我的情況。 – samthui7

+0

謝謝,爲我工作:)另請參閱:http://stackoverflow.com/a/8442817/1579667 – Benj

相關問題