Issue
When I want to commit sth, in GitHub Desktop or Visual Studio or VS Code, I get this error:
error: Couldn't load public key \\: No such file or directory?
I had tried to use ssh for my github, but now even I can't make a local commit.
Thanks for your help.
Solution
[Upgrading my comment to an answer, since it solved the problem.]
If you're getting this message when doing git commit
, which should not try to use ssh, there might be a problem with your Git configuration. Run
git config --list --show-origin
and scan for something to do with a public key, or maybe ssh, and hopefully the problem will jump out at you.
If you find something there, you can edit the file shown and delete the problematic line.
Answered By - joanis Answer Checked By - Timothy Miller (WPSolving Admin)