An open API service indexing awesome lists of open source software.

https://github.com/mittalyashu/gistash

Upload your local changes or stashed files to GitHub Gist
https://github.com/mittalyashu/gistash

cli cli-app cli-command cli-tool cli-utilities code-sharing command-line git git-stash github-gist hacktoberfest nodejs sharing

Last synced: 3 months ago
JSON representation

Upload your local changes or stashed files to GitHub Gist

Awesome Lists containing this project

README

        


Gistash



Gistash


Upload your local changes or stashed files to GitHub Gist.



Downloads


Version


License

Minimum Node.js version
PRs welcome!

Follow @mittalyashu77

## 🧐 About

Gistash is a CLI tool that lets you save your local changes or stashed file to GitHub gist.

The whole concept of `git-stash` to stash the changes in a dirty working directory away.

There is no option to share your stashed file with other conbtributors.

## πŸ’‘ Features

* πŸ—‚ Upload multiple files at once
* ⏱ Reports each step
* πŸ”’ Safely storing your GitHub token on your local machine
* πŸ‘€ Public or private gist
* πŸ“‹ Copy url to clipboard or open in browser
* ⛏ Maintained

## πŸ”° Installation

**npm**

```
$ npm i -g gistash
```

**yarn**

```
$ yarn global add gistash
```

## πŸšΆπŸ»β€β™‚οΈ Usage

```
$ gistash --help

Upload your local changes or stashed files to GitHub Gist.

Usage
$ gistash

Options
-p, --public Set GitHub gist as public (default: false)
-c, --copy Copy GitHub gist url to clipboard (default: false)
-o, --open Open GitHub gist url in browser
-m, --message GitHub gist description
-v, --version gistash CLI version
-h, --help Showing all available commands
```

**Example**

```
$ gistash ./hello-world.js --open --public
```

* Upload `hello-world.js` file
* Set gist to public using `--public`
* Open in browser with `--open`

## πŸ™πŸ» Credits

- [CodeCarrot](https://www.codecarrot.net/)