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

in #pycharm7 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

Sort:  

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!

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.029
BTC 59067.30
ETH 2504.47
USDT 1.00
SBD 2.44