Skip to content

Instantly share code, notes, and snippets.

@Justinzobel
Last active September 30, 2019 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Justinzobel/382cb56a89979c658ca6588e57c40679 to your computer and use it in GitHub Desktop.
Save Justinzobel/382cb56a89979c658ca6588e57c40679 to your computer and use it in GitHub Desktop.
Get all Github user or organisations clone URLs
https clone URL:
GHUSER=USERNAME; curl "https://api.github.com/users/$GHUSER/repos?per_page=100" | grep clone_url | cut -d "\"" -f 4
SSH clone URL:
GHUSER=USERNAME; curl "https://api.github.com/users/$GHUSER/repos?per_page=100" | grep ssh_url | cut -d "\"" -f 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment