0
0

gh repo clone / git clone で error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400が出る

Posted at

Error

git cloneしようとすると以下のエラーがでる

gh repo clone xxx
Cloning into 'xxx'...
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
fatal: expected 'packfile'
failed to run git: exit status 128

解決策

git config --global http.postBuffer 524288000

このコマンドで~/.gitconfig に以下のような設定が入るので適宜調整。(clone後不要であれば削除)

~/.gitconfig
[http]
        postBuffer = 524288000

原因

http bufferサイズのせいのよう

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