Downloading All My Gists From Github At Once #23895
-
Greetings Everyone out there! I’m new to Github. I have 41 Gists in my account and I want to have a copy of all those gists in my local disk. I searched everywhere but could not find any solution to my question. There are ways to download gists one by one but downloading all of it 1 by 1 is difficult & impractical. Could you please help me by giving a solution? 🙏 Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
GitHub - cuducos/getgist: 🖥️ Easily download any file from a GitHub Gist,...🖥️ Easily download any file from a GitHub Gist, with one single command. - GitHub - cuducos/getgist: 🖥️ Easily download any file from a GitHub Gist, with one single command. maybe this is the app that you are looking for, |
Beta Was this translation helpful? Give feedback.
-
If you’d rather script something yourself, here’s the REST API documentation for Gist access: Gists - GitHub Docs You can list your Gists and then either download the files, or clone the repositories. 🙂 |
Beta Was this translation helpful? Give feedback.
-
Nice solution, are you using Gists API? ? |
Beta Was this translation helpful? Give feedback.
-
I came here, couldn't find readily available code that used GitHub API and I wrote this: https://github.com/devarda/github-takeout You may download all your Gists that you've created, all the Gists you have forked, all the Gists you have starred. You can list them as CSV to have an index or just to sort through. It will download all the Gists into separate folders and will place each file inside. The scripts are simple and hackable so that you can add more meta in CSV or create a index.md file for each Gist to store meta - up to you to adjust to your needs! Here are some examples of what you can do: # download forked gists
yarn download-forked-gists
# download your gists
yarn download-my-gists
# download starred gists
yarn download-starred-gists
# list gists with files
yarn list-gists-with-files
# list gists
yarn list-gists
# etc. |
Beta Was this translation helpful? Give feedback.
If you’d rather script something yourself, here’s the REST API documentation for Gist access: Gists - GitHub Docs
You can list your Gists and then either download the files, or clone the repositories. 🙂