Fetch All GitHub Repos for User

1 min read github, bash, cli

script to fetch all github repos for a given user

Prerequisites

  • jq - command-line JSON processor

Install

install to ~/bin via make install

Usage

fetch-all-github-repos-for-user.sh [GTIHUB USERNAME]

e.g. fetch-all-github-repos-for-user.sh pfeilbr

creates [GTIHUB USERNAME] directory relative to current and stores each repo beneath it

TODO

  • only fetches first 100 repos. update to fetch all of them
  • fetch all updates to an existing “local” on disk repo.

    cleanest option maybe to delete the local repo directory and re-clone downside is dropbox need to resync everything