http模式下的Bitbucket无需密码即可克隆repo

Bitbucket in http mode clones repo without password

我注意到,当我尝试使用如下命令克隆私人仓库时:git clone http:// ,它不再询问我密码并克隆了仓库。

我检查了 ~/.gitconfig 文件,它不包含我的 bitbucket 密码。它只包含电子邮件和姓名。

我还没有将我的 bitbucket 帐户设置为使用 SSH

git 选择我的密码的可能原因或位置是什么?

行为:命令行在克隆私人仓库时不提示输入密码。

根本原因:Mac钥匙串将我的 bitbucket 密码存储在它的钥匙串实用程序中。

解决方案:从 KeyChain Utility 中删除您的 bitbucket 密码条目。