简体   繁体   English

无法使用IntelliJ Idea12推送到Git

[英]Cannot push to Git with IntelliJ Idea12

I recently updated to IntelliJ idea 12, and I am unable to Push to Git. 我最近更新到IntelliJ idea 12,我无法推送到Git。 The error message I am getting is 我得到的错误信息是

8:02:10 AM Push failed: Couldn't authorize

I can push without issue using Tortoise Git. 我可以使用Tortoise Git毫无问题地推送。 I am thinking this stems from my password changing for LDAP, however I cannot find anywhere to change the saved Git password in IntelliJ. 我认为这源于我的LDAP密码更改,但我找不到任何地方更改IntelliJ中保存的Git密码。

I have tried changing the master password but that did not resolve the issue. 我试过更改主密码,但没有解决问题。

I can pull without issue. 我可以毫无问题地拉。

I would recommend you to open a request in the tracker and attach the log there (Help -> Reveal Log). 我建议你在跟踪器中打开一个请求并在那里附上日志(帮助 - >显示日志)。

Btw, to remove all passwords from IDEA for sure you have to restart after resetting the master password, because passwords may be saved to memory as well. 顺便说一下,要从IDEA中删除所有密码,确保在重置主密码后必须重新启动,因为密码也可以保存到内存中。

I know this is a late answer, but I've experienced this problem too (as recent as today), and I have an easy "fix" for it until JetBrains fix it. 我知道这是一个迟到的答案,但我也经历过这个问题(就像今天一样),我有一个简单的“修复”,直到JetBrains修复它。

Instead of wiping the entire .IntelliJIdea12 folder , which will result in you loosing all settings, you can simply delete the security.xml file in ~\\.IntelliJIdea12\\config\\options and restart IDEA. 您可以直接删除~\\.IntelliJIdea12\\config\\optionssecurity.xml文件,然后重新启动IDEA,而不是擦除整个.IntelliJIdea12 folder ,这将导致您丢失所有设置。 Now you will be prompted to enter credentials again, and it should work just fine. 现在,系统将提示您再次输入凭据,它应该可以正常工作。

我刚刚退回到11.1.5,因为intellij 12 git支持似乎完全被冲洗了。

Try to fully reinstall IDEA v.12 , deleting all local history and cleaning register. 尝试完全重新安装IDEA v.12 ,删除所有本地历史记录和清除注册表。 I'm using IntellijIDEA on many computers. 我在许多计算机上使用IntellijIDEA。 This problem occures randomly on some of them. 其中一些问题随机出现此问题。 This radical method helped somehow solve the problem (but not on all computers). 这种激进的方法有助于以某种方式解决问题(但不是在所有计算机上)。

If you use Intellij IDEA on mac delete this directories: 如果你在mac上使用Intellij IDEA删除这个目录:

rm -rf ~/Library/Preferences/IntelliJIdea12/

As read in In IntelliJ on OS X, how do you clear out all global setting info, licensing etc. (external to any project) 在OS X上的In IntelliJ中所述,如何清除所有全局设置信息,许可等(任何项目外部)

对于IntelliJ Community Edition,security.xml文件位于.IdeaIC12 / config / options中: http ://odoepner.wordpress.com/2013/06/12/fix-password-issues-in-intellij-12/

在你的项目文件夹中,转到.git文件夹(你不会在windows中看到它,只需在地址栏中输入它)并在配置文件中编辑url(问题仍存在于intellij 13.1.3中)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM