Download private BitBucket repository zip file using http authentication
问题 I'm writing a script to easily deploy an application. The code for the application is stored in a private BitBucket repository. I'd like to be able to download a zip file of the commit. I've tried authenticating with the following code: https://user:pass@bitbucket.org/user/repo/get/commit.zip However, instead of accomplishing the task it redirects to the login page on BitBucket. 回答1: Personally, I didn't want to put my password into my script to accomplish this. So the trick was to run the