News for hackers. Stuff that matters.
Re:18F GitHub Repositories by dvtkrlbs on Saturday March 01, 2025 @04:26PM (#43223838)
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
Re:18F GitHub Repositories by Vingdoloras on Saturday March 01, 2025 @05:10PM (#43224253)
By 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.
Re:18F GitHub Repositories by jarvuschris on Saturday March 01, 2025 @04:29PM (#43223868)
I 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
Re:18F GitHub Repositories by tomrod on Sunday March 02, 2025 @04:35PM (#43235408)
USDS, 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.