# WARNING: This will LOCK ALL PUBLIC REPOSITORIES ON YOUR GITHUB ACCOUNT # # dependencies hub and jq # - hub: hub.github.com # - jq: https://stedolan.github.io/jq/ # # A better alternative would be to pipe the repos into a temporary file: # $ hub api --paginate users/amingilani/repos | jq -r '.[]."full_name"' > repos.txt # Then manually remove your active repositories # And archive the remaining: # $ cat repos.txt | xargs -I {} -n 1 hub api -X PATCH -F archived=true /repos/{} # # Anyways, to archive all public repositories in your GitHub account: # hub api --paginate users/amingilani/repos | jq -r '.[]."full_name"' | xargs -I {} -n 1 hub api -X PATCH -F archived=true /repos/{}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter