Having trouble downloading Git archive tarballs from Private Repo

后端 未结 3 1831
鱼传尺愫
鱼传尺愫 2020-12-03 00:05

I need the ability to download our application at specific tags, but I am unable to find a working solution for this. Downloading tarballs based on git tag seems promising b

3条回答
  •  时光说笑
    2020-12-03 00:10

    Log into your Private Org on Github.com, then go here to create your token: https://github.com/settings/applications#personal-access-tokens

    When trying to Curl into your Private Org, use the following:

    curl --header 'Authorization: token ADDACCESSTOKENHERE' \
     --header 'Accept: application/vnd.github.v3.raw' \
     --remote-name \
     --location https://api.github.com/repos/ORG/PROJECT/contents/FILE
    

    Replace what's in CAPS with your information...

提交回复
热议问题