Host gist
Hostname gist.github.com
User git
IdentityFile ~/.ssh/<your_key_file_name_probably:id_rsa>
-
Login to github then go to gists
-
Create a new gist, add some test, and click "Create Public Gist"
-
Find the Gist ID. It's at the end of the URL:
gist.github.com/<User ID>/<Gist ID>
- For example this gist's id is f75f935539001306049a
git clone gist:<Gist ID>.git <local repo name>
git clone gist:f75f935539001306049a.git gist_howto