4
5

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.

gistからcloneしようとすると、error: RPC failed; result=22, HTTP code = 400 ってでる。

Last updated at Posted at 2013-01-15
$ git clone https://gist.github.com/xxxxxxxxxxxxx.git 
Initialized empty Git repository in /root/xxxxxxxxxxxxxx/.git/
error: RPC failed; result=22, HTTP code = 400

gitのバージョンを確認する。

$ git --version
git version 1.7.1

最新ではないようだ。

##とりあえず最新にしたら治りました。

以下の通りにソースコードから入れました。

CentOS6.3にgitをソースコードから入れる

$ git --version
git version 1.8.1.1

cloneしてみる。

$ git clone https://gist.github.com/xxxxxxxxxxx.git 
Cloning into 'xxxxxxxxxxxxxx'...
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.

できた。

4
5
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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?