Skip to content

Instantly share code, notes, and snippets.

@DanThomson
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanThomson/f75f935539001306049a to your computer and use it in GitHub Desktop.
Save DanThomson/f75f935539001306049a to your computer and use it in GitHub Desktop.
Gist HowTo

Use gists for documentation!

Add gist to your ~/.ssh/config

Host gist
	Hostname gist.github.com
	User git
	IdentityFile ~/.ssh/<your_key_file_name_probably:id_rsa>

Create a gist

  • 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

Make a local repo for your gist

git clone gist:<Gist ID>.git <local repo name>
git clone gist:f75f935539001306049a.git gist_howto

Learn more about Markdown

Use roughdraft to publish

roughdraft

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment