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
@yyfrankyy
Copy link
Author

但是要注意,明文在终端输入密码多少有点不安全。。。

@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