简体   繁体   English

Intellij Git克隆问题

[英]Intellij Git Clone Issue

I'm using Intellij 2016.2.15 on Windows to code on a nodejs project. 我正在Windows上使用Intellij 2016.2.15在nodejs项目上进行编码。 Everything worked fined, I could work with git easily until the git server was reformated and the ssh key changed. 一切正常,我可以轻松地使用git,直到git服务器重新格式化并且ssh密钥更改为止。 I used the git console to add the keys to .ssh/known_hosts, I changed the intellij git option from "built-in" to "native". 我使用git控制台将密钥添加到.ssh / known_hosts,我将intellij git选项从“内置”更改为“本机”。 I reinstalled intellij, reinstalled git, delete every temporary files. 我重新安装了intellij,重新安装了git,删除了每个临时文件。 I don't know what to do to make the connection work again. 我不知道该怎么做才能使连接重新工作。
Note that if I use the git console to do "git pull" for instance it works, but if I do the same on intellij I have a "Could not read from remote repository" error. 请注意,例如,如果我使用git控制台执行“ git pull”,则它可以工作,但是如果在intellij上执行相同的操作,则会出现“无法从远程存储库读取”错误。
Does anyone have an IDEA (best joke 2016) ? 有人有IDEA(2016年最佳笑话)吗?
Thanks in advance 提前致谢

You can try creating new ssh key pairs , update your public key on git and try git again on command line. 您可以尝试创建新的ssh密钥对 ,在git上更新公共密钥,然后在命令行上再次尝试git。 This should work. 这应该工作。

If everything then works but intellij, it's because your private key requires a passphrase. 如果除intellij之外的所有内容都正常,那是因为您的私钥需要密码。 You can try using a private key without passphrase (press enter when you are prompted to enter your passphrase). 您可以尝试使用没有密码短语的私钥(在系统提示您输入密码短语时,按Enter键)。 This solution might not be very secure though. 但是,此解决方案可能不是很安全。

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

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