LoginSignup
1
2

More than 3 years have passed since last update.

対象のリポジトリが大きすぎてgit cloneできない時の対処法

Last updated at Posted at 2020-03-25

備忘録として。

エラー内容: packet_write_wait: Broken pipe

リモートリポジトリのサイズがクライアント側の受け入れ容量を超えてしまい、git clone時に以下のエラーが出る。

$ git clone ssh://~ sample

Cloning into 'sample'...
remote: Counting objects: 1556, done.
packet_write_wait: Connection to ~ port ~: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack faile

解決

gitクライアント側でバッファの容量をとりあえず20MBまで増やしてあげる。

$ git config --global http.postBuffer 20M
1
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
1
2