0
0

【git】バッファ不足でgitに怒られた話

Last updated at Posted at 2024-08-17

はじめに

いつも通りローカルブランチで作業して変更を確定してプッシュしようとしたらgitに怒られた。
画像等のファイルで一度にプッシュするファイルが大量になってバッファが足りなかったみたいだ。
びっくりした。
自分用の備忘録として残しておく。

エラー内容

error.txt
www-data@www-datanoMacBook-Air sample % git push origin develop
Enumerating objects: 105, done.
Counting objects: 100% (86/86), done.
Delta compression using up to 8 threads
Compressing objects: 100% (59/59), done.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (65/65), 9.74 MiB | 10.21 MiB/s, done.
Total 65 (delta 16), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

解決方法

resolve.txt
git config http.postBuffer 524288000

どうやらgitのデフォルトでは1MBらしい。
上記コマンドで500MBまで上げたら余裕だった。
むしろ余裕すぎた・・・

まとめ

意外とハマる予感がするので覚えておこう。

0
0
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
0
0