Summary of solving "could not read from remote repository" 4 Pycharm(should works 4 IDEA-family) in Windows

in pycharm •  7 years ago  (edited)

Environment

  • Windows 10
  • Pycharm 2017.2.2

Phenomenon

  • Right after you've committed ur local change, you're gonna execute the operation git push from the right-click context menu in Pycharm, but you got such error pop-up of Push failed: Failed with error: Could not read from remote repository.

Solution

  • Go to download&install the windows version of OpenSSH here.

  • Go to the setting of Pycharm, and Version Control--> Git , and then, In the SSH executable drop-down, choose Native.

  • Generate the ssh key-pair on Windows using the command like ssh-keygen -C 'Win10', if you don't encounter with this error of Saving key "/home/sudosu/.ssh/id_rsa" failed: No such file or directory(obviously, this path style doesn't belong to windows, I directly gave up to find the solution), great!
    But if you're not very lucky like me, what I did is to directly copy the private ssh-key from my dev Linux-box into this path of C:\Users\Sharp\.ssh(do not forget to replace the username with yours and check the corresponding public key whether it's in your Github setting.)

Reference

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @sudosu! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!