All Projects → egoist → Gist It

egoist / Gist It

Licence: mit
Create a GitHub Gist from text files.

Programming Languages

javascript
184084 projects - #8 most used programming language

gist-it

NPM version NPM downloads CircleCI donate

gist

Why do we need this?

A. 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.

B. Somebody asked me to provide a repo to reproduce a bug, so I made it locally and upload it to gist in order to share with him without creating a repo for that.

Install

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

Usage

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 https://github.com/settings/tokens/new, remember to select gist scope:

gist-scope

Then store it in gist-it:

gist-it --set-token $the_token_you_just_generated

Or use a token without storing it:

gist-it --token $your_token

To not to use stored token for once:

gist-it --no-token

Update an exising gist

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

Contributing

  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

Author

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

egoistian.com · GitHub @egoist · Twitter @_egoistlily

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].