jq-powered Bash script experiment to display useful information about GitHub users & repos
ghinfo displays summaries of GitHub users and repositories. Quickly grab stats, get a sense of project activiy, and display clone URLs all without leaving the command line.
-
To display a summary of a GitHub user:
./ghinfo -u <username> -
To display a summary of a GitHub repository:
./ghinfo -r <username/repositoryname> -
To display a list of forks for a GitHub repository:
./ghinfo -f <username/repositoryname>
For all commands, ghinfo can also accept a full GitHub user or repo URL as valid input.
NOTE: ghinfo must be executable: chmod 755 ghinfo
ghinfo uses the jq JSON processor and curl.
See the detailed installation instructions for jq.
Mac users can easily install jq with Homebrew:
brew install jq