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 only had to set the
gist
permission for the OAuth token, but you may not even need that set.@mbostock
Would be nice to have, which permission should be set for the OAuth token, in the README.md .