Summary of solving "could not read from remote repository" 4 Pycharm(should works 4 IDEA-family) in Windows
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 ofPush 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 ofSaving 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 ofC:\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.)
Congratulations @sudosu! You received a personal award!
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!