Android Studio Bitbucket密码更改导致现有存储库无法访问。

3
这似乎是Android Studio的BitBucket插件问题,我从bitbucket.com更改了我的BitBucket帐户密码之后,我的现有存储库无法与BitBucket同步。
当我尝试将更改推送到我的存储库时,出现以下错误: 推送失败 致命错误:对“https://:@bitbucket.org/.git/”进行身份验证失败
有什么想法如何解决这个问题吗?
谢谢

请参考:https://dev59.com/fF4c5IYBdhLWcg3wQYSC - undefined
不起作用。到目前为止,对我有效的方法只有在我的硬盘上完全删除项目,并从Bitbucket检出(从而在硬盘上创建一个新文件夹),这样它就会再次要求输入密码,然后正常工作。 - undefined
2个回答

2

我曾经遇到过同样的问题,解决方法如下!

1.Go to [project]/.git directory.
2.Open for edit 'config' file.
3.In '[remote "origin"]' section find 'url' property and replace your old password with new one.

重新加载项目。完成!

1
我无法在'url'属性中找到密码。我正在使用Git。 - undefined
2
我也无法在'url'属性中看到密码。 - undefined
如果您没有看到密码,那意味着您没有设置密码 - 在URL中不需要密码。现在您可以添加密码。 - undefined

0

你需要在gitUrl中添加你的Bitbucket用户名和密码。

https://user:password@bitbucket.org/.git 如果这种方式不起作用, 你需要进入Bitbucket的个人设置,然后进入应用程序密码并创建一个密码,使用以下方式: https://user:new password@bitbucket.org/.git


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接