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.
cdinto the directory where you downloadedgithub-repo-dl.- Run
cargo build --release. - You will find the
github-repo-dlbinary intarget/release.
github-repo-dl <token>
github-repo-dl <token> <directory>
shopt -s extglob ; rm -rf !(Cargo.lock|Cargo.toml|src|target|README.md)