Skip to content

Instantly share code, notes, and snippets.

@suzaku
Created June 20, 2020 00:00
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 suzaku/99312e3f4d3364f5f22ab34cc9adffea to your computer and use it in GitHub Desktop.
Save suzaku/99312e3f4d3364f5f22ab34cc9adffea to your computer and use it in GitHub Desktop.

Obsidian helps us manage our notes and other kinds of writings. With everything stored in a local directory, we can easily backup our knowledge base with tools like Dropbox. But still we need a way to share our writings, this tutorial shows a simple way to share notes with Github gist that only requires two steps to set up.

Set up

  1. Make sure you have a Github account.
  2. Install a command line tool for gist: gist. On macOS you can use brew install gist if you have brew installed.
  3. Login with gist --login. It would ask you for your Github username and password to obtain OAuth2 access token, but it won't save your password as you can see in the source code.

Share

gist -f MyNote.md < MyNote.md

Enjoy sharing :)

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