[Git] gist を git clone できないを解決する方法

memo.

https で clone できない。

$ git clone https://gist.github.com/6402900.git
Cloning into 6402900...
error: RPC failed; result=22, HTTP code = 400
fatal: The remote end hung up unexpectedly

こんな形式で ssh 経由の clone をする。

$ git clone git@github.com:6402900.git       [17:05:30]
Cloning into 6402900...
Enter passphrase for key '/home/***/.ssh/id_rsa':
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.

補遺