I have a github repo, like https://github.com/username/reponame
I have also added my SSH key to the repo in the settings.
Using:
git remote -v
I get:
reponame git@github.com:username/reponame.git (fetch)
reponame git@github.com:username/reponame.git (push)
I've made a test.txt
in the repo root on Github to test fetching.
Using the git command in Windows CMD in the local project folder (which was copied earlier from the repo manually),
git fetch reponame
I get:
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Connection abandoned.
fatal: Could not read from remote repository.
I've found same questions but none of them could clear the picture for me.
Any suggestion what am I missing here?