Since a few weeks, I\'m not able to pull or push from or to the remote repository. I thought it happend when upgrading to IntelliJ IDEA 14, but I can reproduce the problem w
For me the solution was: Settings
˃ Version Control
˃ Git
˃ Use Credential helper
Settings --> Version Control --> Git
, and then, in the SSH executable dropdown, choose Native
If this doesn't help, ensure that your native ssh
and git
clients are of a sufficiently recent version.
Go to Preferences > Version Control > Git. Make sure SSH executable is set to “Native.” (If it's already so, switch it to “Built-in,” apply it, and then again switch back to “Native.”).
If this doesn't solve your issue, I would suggest to download a Git client such as GitHub client (free desktop app) and try to sync your project through the app. Then go back to IntelliJ and check if it works.
what @yabin ya says is a cool solution, just remind you that: if u still get the same problem,go to Settings-Version Control-GitHub and uncheck the Clone git repositories using ssh
.
Not a solution / workaround but perhaps an answer to the question 'what could be the problem':
Gitlab and the 'jetbrains built in ssh library' do not work well together. The library wants to use SHA1 based key exchange algorithm where gitlab (default) only allows SHA2 based key exchange algorithm's.
This was reported for at least TeamCity (https://youtrack.jetbrains.com/issue/TW-47704).
The fact that it also might be the cause for your pull/push problem in IntelliJ, and also my push-problem in PhpStorm is based on the ASSUMPTION jetbrains use the same 'built in library' for all their software.
Don't forget to contact your system administrator.
Because in my case I had every thing rightly configured(SSH also added) but I got the same error
repository access denied. fatal: Could not read from remote repository.
the reason was I only had read access to that repository. Therefore with out wasting your valuable time please check that as the first thing. Thank you.