Run like so:
chmod u+x gist-clone-all
./gist-clone-all username OAUTH_TOKEN
You'll want to replace “username” with your own username and “OAUTH_TOKEN” with an OAuth token.
This script clones using the push URL, so you should probably be the owner of the gists. You could also use this to clone someone else's gists, but in that case you may wish to edit the code to use gist_pull_url
instead.
I've been using https://github.com/aprescott/gist-backup but I was wondering if there was a way to clone all other people's forks of my gists, too, so I can easily see what changes have been made. I've been adding them manually with username as remote name.