從 SSH 儲存庫克隆 Git

從 SSH 儲存庫克隆 Git

我曾經能夠從我的個人 git 存儲庫克隆,但現在我似乎遇到了錯誤。

user:dev.site.com mikesilvis$ git clone { my ssh directory }
server@ipaddress's password: 

remote: Counting objects: 3622, done.
remote: Compressing objects: 100% (2718/2718), done.
error: git upload-pack: git-pack-objects died with error.  
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

然而,當我將文件推送到存儲庫時,它似乎正在工作。

答案1

錯誤訊息

git-pack-objects died with error

表示遙控器有問題。您可以 ssh 進入遠端並運行git fsck嗎?如果發現任何錯誤,則可能是 CPU、RAM 或儲存裝置故障(無論您相信與否,但 git 確實很擅長尋找這些錯誤)。另一件需要檢查的事情是確保本地系統和遠端系統都沒有耗盡儲存空間。

答案2

你檢查過權限嗎?

對於 git 用戶(通常稱為 git)?

看到這個

http://www.kernel.org/pub/software/scm/git/docs/everyday.html

答案3

您是否檢查過 shell 初始化是否在非交互模式下不產生任何輸出。這是 scp 不起作用的典型原因(您可以檢查它是否起作用)。

相關內容