Git clone でエラーが起きた(重いリポジトリの場合)


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: protocol error: bad pack header
Completed with errors, see above

このようなエラーが出た場合、以下の方法でターミナルよりcloneをしましたら解決しました。

git clone --depth 1 [clone repository]

時間はかかりますが、分割してクローンができるみたいです。


コメントを残す