KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there an API call or any scripts that I failed to overturn that would pull all my Gists from Github to an outside git repo or just return me a list of their names? I know each one is a separate git repo, so I have assumed the best I can do is get the latter, then script to get all of them onto my local box. EDIT 1 : I know about pulling and pushing git repos from one service to another, I am specifically looking for people who have the 411 on collecting an authoritative list of all Gists I have, private and public. I also thought this might be useful to others. It is not so much about migration, but a backup strategy . . . of sorts. EDIT 2 : So, it appears this might not be possible. I apparently did not Google hard enough to search the updated Github/Gist API . The other API calls work with simple curl commands, but not the v1 API for Gist. Still, the API says TBD for all private and public Gists , so I think that puts the cabash on the whole thing unless an enlightened soul hooks a brotha up. $ curl http://github.com/api/v2/json/repos/show/alharaka {"repositories":[{"url":"https://github.com/alharaka/babushka","has_wiki":true,"homepage":"http: ... # tons of more output echo $? 0 $ This one does not work so hot. $ curl https://gist.github.com/api/v1/:format/gists/:alharaka $ echo $? 0 $ EDIT 3 : Before I get asked, I noticed there is a difference in the API versioning; this "brilliant hack" did not help either. Still very cool though. $ curl https://gist.github.com/api/v2/:format/gists/:alharaka # Notice v2 instead of v1 $ echo $? 0 $
Tags (comma-separated)
Save Edits
Cancel