Created
December 29, 2011 08:52
-
-
Save yyfrankyy/1533038 to your computer and use it in GitHub Desktop.
download from github's private repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sLk --user {username}:{password} https://github.com/{username}/{repo}/tarball/{tagname} | tar -xzf - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -skL --user {username}:{password} https://github.com/{username}/{repo}/tarball/{tagname} -o {tagname}.tgz |
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
但是要注意,明文在终端输入密码多少有点不安全。。。