i trying download zip file private github repo.
i trying:
curl -h "authorization: token f19..." -l https://github.com/mylab/name/archive/release.zip
and shows me:
{"error":"not found"}
if try:
curl -h "authorization: token f19..." -l -o release.zip https://github.com/mylab/name/archive/release.zip
it downloads small zip file can't open because says "either file not zip ......".
this should solve problem
curl -h "authorization: token f19..." -lk https://api.github.com/repos/mylab/name/zipball/release -o release.zip
edit : need customize :
- mylab : user or organization
- name : repository name
- release : tag or branch targeted
edit 2: need have token have whole "repo" category ticked grant full access private repositories
edit 3: beware there must only one space between token , f19...
Comments
Post a Comment