configuration

or you can specify the environment variables GITHUB_USER and GITHUB_TOKEN

you can find the username and API token on your GitHub’s account page

usage

from within a working directory with a remote that is hosted on
GitHub (remote named either origin or github for git repositories or
default or github for mercurial/hg-git repositories), you can do this (note: with
the -r option, commands can be invoked from anywhere):