I have received the following error multiple times:
Could not read remote repository. Please make sure you have the correct access rights and the repository exists.
I am very confused about how to remedy this error.
I have received the following error multiple times:
Could not read remote repository. Please make sure you have the correct access rights and the repository exists.
I am very confused about how to remedy this error.
Installing a root/CA Certificate
Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:
Create a directory for extra CA certificates in /usr/share/ca-certificates:
Copy the CA .crt file to this directory:
Let Ubuntu add the .crt file's path relative to /usr/share/ca-certificates to /etc/ca-certificates.conf:
This is an old post, but this is they only thing that I found that worked.
I also had the exact same error and for some reason restarting my pc solved the error. Maybe it works for somone else too :P
I had same issue on my private Ubuntu server using ssh.
My workaround solution was:
open shell on my private server
and then, from my developer laptop
has finally worked well.
PS:
I've never tried, but remote repo with https seems working better than ssh.
I hope this help.
Assuming you have done the proper SSH keys configuration according to github's instructions it might be a problem of pull with https and later pushing with git+ssh
to make it more clear
if you have used https to pull
then you have changed remote URL
and tried to push after some changes and commits
you might get this error it happened to me
erase the local repository and re-clone using git+ssh
and now your push should work
I had the same issue with Pycharm on Ubuntu the solution is to use https instead of SSH for example : https://github.com/Bedo1212/myrepo.git
I had the exact same issue with a private repo. Cloning through the same error both through https and ssh
Then I made a commit through github (simply updated the
README.md
with an empty line)Surprisingly enough, this resolved the issue. It would be nice to know why though!