我使用BitBucket并且必须更改我的密码,因为它已被泄露.
git pull
Run Code Online (Sandbox Code Playgroud)
remote:用户名或密码无效.如果您通过第三方服务登录,则必须确保在帐户配置文件中设置了帐户密码.
致命:" https://bitbucket.org/myusername/myproject.git/ "的身份验证失败
如何使用命令行更改密码?
sof*_*fun 161
您需要重置密码,如下所示.
在macOS上:
git config --global credential.helper osxkeychain
Run Code Online (Sandbox Code Playgroud)
在Windows 10上:
git config --global credential.helper store
Run Code Online (Sandbox Code Playgroud)
执行此操作后,它会提示您输入repo的用户名和密码.
小智 53
我认为这只是一个身份验证问题......
就这样 :)
Gui*_*sta 43
首先,编辑.git/config并从'url'中删除您的用户名.
我有这个:
url = https://username@bitbucket.org/pathto/myrepo.git
Run Code Online (Sandbox Code Playgroud)
修改后:
url = https://bitbucket.org/pathto/myrepo.git
Run Code Online (Sandbox Code Playgroud)
然后尝试拉(或推)并使用您的电子邮件和密码凭据登录.
dtb*_*rne 15
我需要执行此操作并运行git pull以便从命令行设置我的密码以使其正常工作.
请注意,此方法将密码保存在磁盘上的纯文本文件中:
git config --global credential.helper store
git pull
Run Code Online (Sandbox Code Playgroud)
其他解决方案: 在GitHub上使用https://时是否有办法跳过密码输入?
小智 9
最近,BitBucket需要您生成应用程序密码:
设置/访问管理/应用密码.
https://bitbucket.org/account/user/.../app-passwords
您可以从OSX Keychain更新您的Bitbucket凭据.
通过命令行更新缓存的凭据:
$ git credential-osxkeychain erase
host=bitbucket.org
protocol=https
[press return]
Run Code Online (Sandbox Code Playgroud)
如果成功,则不会打印出任何内容.要测试它是否有效,请尝试从Bitbucket克隆存储库.如果系统提示您输入密码,则会删除钥匙串条目.
| 归档时间: |
|
| 查看次数: |
87009 次 |
| 最近记录: |