Reputation: 11039
When I am using the command git push -u origin master
, I get the error
Permission denied (publickey)
fatal: Could not read from remote repository
Please make sure you have the correct access rights
and the repository exists.
I am using Windows 10.
I guess I am not logged in correctly.
I have seen the answer at GIT push: permission denied (public key), but I cannot use the command ssh
. I guess it is because I am on a Windows machine.
Besides, Github says that https is recommended in favor of using ssh.
Upvotes: 1
Views: 1095
Reputation: 53
You have to execute the command from inside the git repository. i.e., the folder which contains the .git file
Upvotes: 1
Reputation: 644
If you are using Windows machine , then there is an extension called
git extension
Once you download, then you have to make your ssh file to push or pull from git server using git extension.
You can create your SSH file in your git server account. After that you can try this using git extension
Upvotes: 2