2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git clone で fatal: early EOF

Last updated at Posted at 2015-08-26

最近codebreak;を使ってgitで遊んでいたら発生したエラーについてなんとか解決できたので備忘録に

環境:MacOSX 10.10.5, Windows7

プロジェクトのサイズは当時200MB程度。
すでにclone済みのローカルからはfetchやpull, pushなどが行えますが
新規でcloneする場合のみ以下のようなエラーが発生していました。

git clone https://<ユーザー名>@git.codebreak.com/<ユーザー名>/<プロジェクト>.git
Cloning into '<プロジェクト>'...
POST git-upload-pack (224 bytes)
remote: Counting objects: 1240, done
remote: Finding sources: 100% (3/3)
remote: Getting sizes: 100% (2/2)
fatal: The remote end hung up unexpectedly MiB | 337.00 KiB/s   
fatal: early EOF
fatal: index-pack failed

先に対応と結果を書きますが
https接続からssh接続に変更したら解消しました。

git clone ssh://<ユーザー名>@git.codebreak.com/<ユーザー名>/<プロジェクト>.git
Cloning into '<プロジェクト>'...
remote: Total 1917 (delta 0), reused 1917 (delta 0)
Receiving objects: 100% (1917/1917), 183.34 MiB | 633.00 KiB/s, done.
Resolving deltas: 100% (808/808), done.
Checking connectivity... done.
Checking out files: 100% (1071/1071), done.

はじめは以下のページなども参考にさせていただきましたがちょっと違ったようです
http://urashita.com/archives/2293

本現象がgitだから発生したのかcodebreak;だから発生したのかはわかりませんが
ひとまず解決ってことにしています。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?