Sivakumar
Sivakumar

Reputation: 1119

Git pull not working in windows, fatal: Could not read from remote repository

In windows when I try git pull origin master, I get this error. But it works when I try from Git Bash.

Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure you have the correct access rights and the repository exists

.

This error comes when I try from windows command prompt.

Upvotes: 0

Views: 1087

Answers (1)

Paul
Paul

Reputation: 13238

My assumption is that when run outside of Git Bash, git can't find your private key for the repository you are trying to access.

Run echo $HOME in Git Bash and set HOME in Windows command prompt and compare results.

Upvotes: 1

Related Questions