Create a Github Gist with a simple Python script

How to share code snippets from command line

Gist.github.com is a great service provided by GitHub, useful to share code snippets.
You can share single files, parts of files, or full applications: every gist is a Git repository, which means that it can be forked and cloned.

I’ve developed this simple python script useful to share sourcecode on gist from command line:

<a href="https://medium.com/media/d98e62b7d98a488945ebfcd884ad5eaa/href">https://medium.com/media/d98e62b7d98a488945ebfcd884ad5eaa/href</a>

Usage

Pretty simple!

For example, to publish the gist embed in this post, i’ve used this command:

python gist.py ./gist.py [GitHub Username] [GitHub Password]

Create a Github Gist with a simple Python script was originally published in So Long, and Thanks for All the Fish on Medium, where people are continuing the conversation by highlighting and responding to this story.

Article Link: https://andreafortuna.org/create-a-github-gist-with-a-simple-python-script-26d3f21bb734?source=rss----bf18ac17f001---4