git with IntelliJ IDEA: Could not read from remote repository

前端 未结 30 1992
夕颜
夕颜 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:43
    1. Go to Settings->Git->Select Native in SSH executable dropdown. (If it is not selected)
    2. Copy HTTPS link from your Github repository.
    3. Go to VCS->Git->Remotes..
    4. Edit the origin and Paste HTTPS link in the URL field.
    5. Press Ctrl+Shift+k and push the project to repository. It works.
    0 讨论(0)
  • 2020-12-07 08:44

    in pyCharm,

    file|
        v-->settings|
                    v-->Version Control|
                                       v-->Git
    

    Here change SSH executable from Built-in into Native

    then press apply and close

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

    I tried all solutions above (Native, changing url of VCS repository, updating Git, updating IDEA, invalidating Caches), but nothing helped me. Finally I found solution that works for me.

    SOLUTION: I closed Idea and replaced content of file ~\.IntelliJIdea20xx.x\config\options\git.xml with this:

    <application>
      <component name="Git.Application.Settings">
        <option name="SSH_EXECUTABLE" value="IDEA_SSH" />
      </component>
    </application>
    

    Then I started IDEA, try to checkout SSH GIT repository and it works and existing projects works as well. Interesting fact is that when I switch to NATIVE in Idea Settings, repository not working.

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

    I had the same problem. Was using bitbucket and had trouble in pulling/updating the repository on Intellij. Tried changing to native and back to built in, but it was not working. Then realized that I had generated the ssh key with a passphrase.

    I regenerated the key without the passphrase and then added it to the bitbucket. It worked !

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

    Ensure that you've changed the link to the git repository to the HTTPS option after you've selected "Native" in IntelliJ settings if SSH doesn't work.

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

    The problem is solved in my pc.
    settings-->Version Control-->Git ,and then, In the SSH executable drop-down, select built-in option.

    and install git older version something like 2.14.2.
    Its works good!

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