Skip to content

Instantly share code, notes, and snippets.

@graste
Created June 25, 2022 20:45
Show Gist options
  • Save graste/fff988ec6cd3cc1cfafd8584a7104016 to your computer and use it in GitHub Desktop.
Save graste/fff988ec6cd3cc1cfafd8584a7104016 to your computer and use it in GitHub Desktop.
Backup all starred repositories from github
# from https://www.commandlinefu.com/commands/view/26576/backup-all-starred-repositories-from-github
GITUSER=$(whoami); curl "https://api.github.com/users/${GITUSER}/starred?per_page=1000" | grep -o 'git@[^"]*' | xargs -L1 git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment