A POSIX shell script to download files/directories from GitHub repositories.
It uses parallel and resumable transfers via curl
, with a progress indicator.
Run make install
as root to install ghget
to /usr/local/bin
.
or
Copy ghget
to a directory in your PATH
.
ghget [-o path] url
ghget https://github.com/fivethirtyeight/data/tree/master/airline-safety
ghget -o airlines https://github.com/fivethirtyeight/data/tree/master/airline-safety
ghget https://github.com/fivethirtyeight/data/blob/master/index.csv
ghget -o list.csv https://github.com/fivethirtyeight/data/blob/master/index.csv
ghget -o - https://github.com/fivethirtyeight/data/blob/master/index.csv
ghget https://github.com/fivethirtyeight/data