我正在编写一个脚本来轻松部署应用程序.应用程序的代码存储在私有BitBucket存储库中.
我希望能够下载提交的zip文件.我尝试使用以下代码进行身份验证:
https://user:pass@bitbucket.org/user/repo/get/commit.zip
但是,它不是完成任务,而是重定向到BitBucket上的登录页面.
我需要为OS X禁用git凭证助手: git-credential-osxkeychain
我在OS X Mountain Lion 10.8.3中使用Xcode Command Line Utilities 4.6.2安装的git .
在此安装中,git pull或者git push要记住密码的默认行为,从而使用户不必再次输入密码.
虽然方便,但在我的情况下这是一个安全风险.我需要禁用凭证帮助程序,因此每个遥控器都需要密码pull,push或者fetch.
使用Xcode安装的git似乎不用于设置此功能.这是我的设置:git config
# git --version =>
git version 1.7.12.4 (Apple Git-37)
# git config --global --list =>
user.name=User Name
user.email=user@home
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=auto
color.ui=auto
alias.lol=log --pretty=oneline --abbrev-commit --graph --decorate
alias.co=checkout
alias.ci=commit
alias.st=status
alias.br=branch
alias.hist=log --pretty=format:'%h %ad | %s%d …Run Code Online (Sandbox Code Playgroud)