git 将更改推送到 googlecode 时,egit 中的用户名/密码无效

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12669000/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 07:34:04  来源:igfitidea点击:

invalid username/password in egit when pushing changes to googlecode

eclipsegitsts-springsourcetoolsuiteegitgoogle-code

提问by Neets

I have a project hosted in googlecode with Git.

我有一个用 Git 托管在 googlecode 中的项目。

I'm using STS (SpringSource Tool Suite) with eGit.

我在 eGit 中使用 STS(SpringSource 工具套件)。

I cloned the repository at home and I could commit & push the changes successfully. I did the same thing at work and when I try to push the changes after commiting them, it shows the following error:

我在家里克隆了存储库,我可以成功提交和推送更改。我在工作中做了同样的事情,当我在提交更改后尝试推送更改时,它显示以下错误:

https://[email protected]/p/myproject/: Invalid username/password.
You may need to use your generated googlecode.com password; see https://code.google.com/hosting/settings

I entered the googlecode generated password when I first cloned the repository (as I did at home, and this error never showed up). I try entering it again and nothing changes.

我在第一次克隆存储库时输入了 googlecode 生成的密码(就像我在家里所做的那样,这个错误从未出现过)。我再次尝试输入它,但没有任何变化。

Does anyone know what could be causing this?

有谁知道是什么原因造成的?

Thanks!!

谢谢!!

回答by Shekh Akther

Do as following:

执行以下操作:

Open Git repositories view, open "Remotes > origin > " and click "Change Credentials..."

打开 Git 存储库视图,打开“远程 > 源 > ”,然后单击“更改凭据...”

Further reference: http://www.eclipse.org/forums/index.php/t/209017/

进一步参考:http: //www.eclipse.org/forums/index.php/t/209017/

Enjoy!

享受!

回答by Faiz Ali

I resolved it by going to Preferences > General > Security > Secure Storage > Contenstab and deleting default secure storage for repository.

我通过转到Preferences > General > Security > Secure Storage > Contens选项卡并删除存储库的默认安全存储来解决它。