How do I download a tarball from GitHub using cURL?

前端 未结 5 1563
旧时难觅i
旧时难觅i 2020-12-02 04:48

I am trying to download a tarball from GitHub using cURL, but it does not seem to be redirecting:

$ curl --insecure https://github.com/pinard/Pymacs/tarball/         


        
5条回答
  •  星月不相逢
    2020-12-02 05:39

    Use the -L option to follow redirects:

    curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zx
    

提交回复
热议问题