git - How to download the Release tar file from Github? -


i have project name testproject in github , have created release version v1.0.0. once , when go release page of project , see 2 links download source code (zip) , other says source code (tar.gz). need download via curl copied url looks https://github.com/../testproject/archive/v1.0.0.tar.gz. when files gets downloaded via curl not tar file cauz when tar -zxvf v1.0.0.tar.gz below error message

tar: unrecognized archive format tar: error exit delayed previous errors.

now when go release page of github , click on tar version, testproject-1.0.0.tar.gz gets downloaded tar file.

how file when curl?

add -l flag curl command in order follow redirects.

example:

curl -o -l https://github.com/gulpjs/gulp/archive/v3.9.1.tar.gz 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -