4 ms·
For those wanting to archive all the repos: $ gh auth login $ gh repo list 18f --limit 4000 | while read -r repo _; do gh repo clone "$repo" "$repo" done
by dvtkrlbs 2y ago
For those wanting to archive all the repos:
$ gh auth login
$ gh repo list 18f --limit 4000 | while read -r repo _; do
gh repo clone "$repo" "$repo"
done
- jarvuschris 2y agoI made (refined an existing one I found in a gist) a little script recently that does this more efficiently with bare repos and bundles: https://github.com/JarvusInnovations/fed-git-backups https://github.com/JarvusInnovations/fed-git-backups
- Vingdoloras 2y agoBy only doing clones to get data from Github, you're losing anything stored in LFS. Run `git lfs fetch --all` inside each repo after cloning to make sure you have the large files, too.
- tomrod 2y agoUSDS, 4.2GB, 54 repos: gh repo list usds --limit 9999 --json sshUrl | jq -r '.[].sshUrl' | xargs -n1 git clone 18F, 37GB, 1,213 repos: gh repo list 18F --limit 9999 --json sshUrl | jq -r '.[].sshUrl' | xargs -n1 git clone I'm worries git lfs will be too large.
- 19g-1 2y ago[dead]