Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Close all repos using a personal access token
#!/bin/bash
ORG=organization;
ACCESS_KEY=0000000000000000000000000000;
for i in $(curl "https://api.github.com/orgs/$ORG/repos?access_token=$ACCESS_KEY&per_page=1000" | sed '/[ ]*"clone_url":/!d;s/[^:]*: "//;s/",$//'); do
echo git clone $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.