Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
3 views
in DevOps and Agile by (29.3k points)

I am using TortoiseGit on Windows. When I am trying to Clone from the context menu of the standard Windows Explorer, I get this error:

Please make sure you have the correct access rights and the repository exists

More precisely, the snapshot of the terminal is the following:
git.exe clone --progress -v "git@chandradev:\git\chandra.git" "C:\Work\Chandra"
Cloning into 'C:\Work\Chandra'...
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What should I do to make git work properly?

1 Answer

0 votes
by (50.2k points)
edited by

There are 2 ways we could use in this case.

First thing you can change the url from git to https from remote and try to clone with that link.

git clone https://your-git@git/git  

or you can change the remote url using:

git remote set-url origin [email protected]

For more information please go through the tutorial of git lifecycle:

Browse Categories

...