A Gist on GitHub is a basic repository. I figured out that you can clone them and keep copies locally, just like any other repository.
Even though I’ve used Gist’s a fair amount it never became obvious to me that you could clone them.
Here are the steps.
git clone {url} {name}
locally.That will clone the Gist and give it a readable name. If you don’t give it a name it will clone as it’s 32-byte ID (e.g. 0654e4e3571ccdca5ceffc63cde6308e).
That’s it, you now have a local copy that you can push, pull, and otherwise edit.
Written by Joel Dare on July 10, 2024.
Want to see my personal updates, tech projects, and business ideas? Join the mailing list.
JoelDare.com © Dare Companies Dotcom LLC