Could not read from remote repository

2019-02-04 04:40发布

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.

标签: github aptana
15条回答
一纸荒年 Trace。
2楼-- · 2019-02-04 05:15

Click this

I had the same problem - it was caused by me using the SSH key instead of the HTTPS URL. I created my repository by importing a project via Intellij and it must have pushed via HTTPS.

查看更多
The star\"
3楼-- · 2019-02-04 05:16

If you're using SSH, make sure you're using a network that allows SSH. Most public networks allow only HTTP(S) traffic.

查看更多
贼婆χ
4楼-- · 2019-02-04 05:27

If it's a public repo, just clone using https. No need to use passwords or setup SSH keys.

查看更多
【Aperson】
5楼-- · 2019-02-04 05:28

Hi my problem was that my client did not ask if I recognized the key. Opening a terminal and doing ssh -T git@github.com worked. The response in the terminal asked if I wanted to add the key, I said yes and after that, my client worked fine

查看更多
Ridiculous、
6楼-- · 2019-02-04 05:29

ssh-add -A resolved my issue in MacOS Sierra 10.12.6.

I had no problem both for public and private repo before.

Today I tried to clone or git pull for private repo, but it hit the above issues.

After search around, this is the perfect solution for me.

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-02-04 05:31

Make sure you are using the correct SSH keys/usernames on both your GitHub account and your local machine. Here's how you can do that on GitHub

Also, you might consider using an alternative Git manager. I've never heard of Aptana, but I do know that GitHub has an awesome GUI program for managing your repositories.

In the future, this is all much easier and more streamlined on Linux/Unix operating systems like Ubuntu. Ubuntu is geared towards developers and has things like Git and SSH installed correctly by default.

查看更多
登录 后发表回答