I was trying to push my first commit on an empty rep to bitbucket. However this:
-git push -u origin --all #to push changes for the first time
resulted to:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So, I tried to sudo it. The result was this:
Warning: Permanently added the RSA host key for IP address '207.223.240.182' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
So, why did this happen and should I remove the permanently added RSA host key for that uknown ip address? How?
Also, I don't want to set up a SSH yet, as I prefer work with HTTPS as a beginner.