Bitbucket无法在git pull上进行身份验证
我使用BitBucket,必须更改我的密码,因为它已被盗用。
git pull
远程:无效的用户名或密码。 如果您通过第三方服务登录,则必须确保您的帐户配置文件中设置了帐户密码。
致命:身份验证失败的'https://bitbucket.org/myusername/myproject.git/'
如何使用命令行更改我的密码?
git config --global credential.helper osxkeychain
git config --global credential.helper store (for Windows 10)
这会重置OS X钥匙串中的密码,并在执行此操作后,它会提示您输入回购的用户名和密码。
我认为这只是一个认证问题...
就这样 :)
首先,编辑你的.git / config并从'url'中删除你的用户名。
我有这样的:
url = https://username@bitbucket.org/pathto/myrepo.git
修改后:
url = https://bitbucket.org/pathto/myrepo.git
然后尝试拉(或推)并使用您的电子邮件和密码凭据登录。
链接地址: http://www.djcxy.com/p/92217.html