Skip to content

Instantly share code, notes, and snippets.

@yyfrankyy
Created December 29, 2011 08:52
Show Gist options
  • Save yyfrankyy/1533038 to your computer and use it in GitHub Desktop.
Save yyfrankyy/1533038 to your computer and use it in GitHub Desktop.
download from github's private repo
curl -sLk --user {username}:{password} https://github.com/{username}/{repo}/tarball/{tagname} | tar -xzf -
curl -skL --user {username}:{password} https://github.com/{username}/{repo}/tarball/{tagname} -o {tagname}.tgz
@ramynagyz
Copy link

The first command within "download_untar.sh" worked well, but the second generates a tgz file that is not extractable, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment