I am trying to download a .zip file from GitHub using the command line in Ubuntu. I am using wget command for it on a remote Ubuntu system.
I run wget <link> where <link> is the address bar link of the file which I want to download. It ends with archive.zip?ref=master.
Now, when I am executing the command, it is downloading a file with text/html type and not the .zip file which I want.
Please tell me how to get the link to be given as the parameter of wget. Right now, I am just copying the link address of the button (using right click) and writing that as a wget parameter.
git clone <projectlink.git>– kashish Jul 26 '17 at 05:19https://github.com/{user}/{repo}/archive/{branch}.zip– Alex Chermenin Jul 26 '17 at 08:22302and continue downloading with new address. https://unix.stackexchange.com/a/74338 – Alex Chermenin Jul 27 '17 at 07:57Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113 Connecting to github.com (github.com)|192.30.253.112|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2017-07-27 14:40:20 ERROR 404: Not Found.additional wget doesn't know your credentials so you would have to provide them as text which just isn't good – derHugo Jul 27 '17 at 12:41