How to Download an Asset File from Private Repository on GitHub

23. February 2017 Note

To download an asset file from private repository on GitHub, we should do like following.

curl -vLJO -H 'Accept: application/octet-stream' \
https://api.github.com/repos/:owner/:repo/releases/assets/:id?access_token=:token

But I couldn’t find a solution to download a file from releases in private repository when there is no asset. Ugh…


Leave a Reply

Your email address will not be published. Required fields are marked *