重置初始保存的app密码



在我的项目中,默认bitbucket应用程序密码是设置的,我想删除它,以便如果我推送代码,它应该每次都问我应用程序密码。

解决这个问题的方法

检查您的应用程序密码是否由git凭证助手存储:
(假设您的git remote -v显示HTTPS URL)

git config --global credential.helper
xxx
# replace xxx by the actual value from the previous command
print "host=bitbucket.orgnprotocol=https" | git credential-xxx get
# if you see the app password, remove it with:
print "host=bitbucket.orgnprotocol=httpsnusername=you" | git credential-xxx erase
# (replace you by your BitBucket account)

相关内容

最新更新