git with IntelliJ IDEA: Could not read from remote repository

前端 未结 30 1991
夕颜
夕颜 2020-12-07 08:11

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

相关标签:
30条回答
  • 2020-12-07 08:37

    For me the solution was: Settings ˃ Version Control ˃ Git ˃ Use Credential helper

    0 讨论(0)
  • 2020-12-07 08:39

    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.

    0 讨论(0)
  • 2020-12-07 08:41

    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.

    0 讨论(0)
  • 2020-12-07 08:41

    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.

    0 讨论(0)
  • 2020-12-07 08:42

    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.

    0 讨论(0)
  • 2020-12-07 08:42

    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.

    0 讨论(0)
提交回复
热议问题