You need to have a GitHub personal access token from here: https://github.com/settings/tokens with either full repo
access (access to both private and public repos) or public_repo
access (access to only public repos).
- Install cargo and rust.
cd
into the directory where you downloadedgithub-repo-dl
.- Run
cargo build --release
. - You will find the
github-repo-dl
binary intarget/release
.
github-repo-dl <token>
github-repo-dl <token> <directory>
shopt -s extglob ; rm -rf !(Cargo.lock|Cargo.toml|src|target|README.md)