There are already some questions with answers how to download the ZIP file of GitHub repositories, but they don't work if the repository is private.
I know it should work with
wget somehow since it does work with
curl -u <USER> -L -o <FILENAME> https://github.com/<USER>/<REPO>/archive/master.zip
The above line will ask for
<USER>'s password, download the master branch ZIP file and save it as
<FILENAME>. However, the
wget equivalent doesn't work:
wget --user=<USER> --ask-password --output-document=<FILENAME> https://github.com/<USER>/<REPO>/archive/master.zip
ERROR 404: Not Found.