Create a GitHub Gist from a text file.
Last updated a year ago by rem .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install gist-it 
SYNC missed versions from official npm registry.


NPM version NPM downloads CircleCI donate


Why do we need this?

When I ran into some issues and got a error.log, the best way to report bugs is gist-it error.log and post the link to it on the issue you created.


yarn global add gist-it
# OR
npm i -g gist-it


gist-it ./npm.log
gist-it lib/foo.js bin/bar.js

# or even glob
gist-it "*.js" "css/*.css"

gist-it --help

By default the gist will be published anonymously, to publish it under your account, you need to generate an access token at, remember to select gist scope:


Then set it in gist-it:

gist-it --set-token $the_token_you_just_generated

Update an exising gist

To update an exisitng gist, append the command with --id existing-gist-id.


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D


gist-it © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list). · GitHub @egoist · Twitter @rem_rin_rin

Maintainers (1)
Today 0
This Week 1
This Month 9
Last Day 0
Last Week 0
Last Month 18
Dependencies (10)
Dev Dependencies (3)
Dependents (0)

Copyright 2014 - 2016 © |