Could not read from remote repository.

今天换新电脑,忘了配置git环境,就去gitserver上代替码。然后一直报错,后来就又一次配置了git环境。步骤例如以下

damingwuage:Desktop damingwuage$ ssh-keygen -t rsa -C "[email protected]"

Generating public/private rsa key pair.

Enter file in which to save the key (/Users/damingwuage/.ssh/id_rsa): (/Users/damingwuage/.ssh/id_rsa

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Passphrases do not match.  Try again.

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

open (/Users/damingwuage/.ssh/id_rsa failed: No such file or directory.

Saving the key failed: (/Users/damingwuage/.ssh/id_rsa.

damingwuage:Desktop damingwuage$ ssh-keygen -t rsa -C "[email protected]"

Generating public/private rsa key pair.

Enter file in which to save the key (/Users/damingwuage/.ssh/id_rsa): /Users/damingwuage/.ssh/id_rsa

/Users/damingwuage/.ssh/id_rsa already exists.

Overwrite (y/n)? y

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /Users/damingwuage/.ssh/id_rsa.

Your public key has been saved in /Users/damingwuage/.ssh/id_rsa.pub.

The key fingerprint is:

ed:fc:a4:9d:28:8a:e3:65:43:a4:45:2e:95:39:a9:17 [email protected]

The key‘s randomart image is:

+--[ RSA 2048]----+

|      o+         |

|     +E          |

|    ..+o         |

|    .=.  .       |

|    ... S .      |

|     .   o       |

|      +   o .    |

|    .+ ..  * .   |

|   .o... .o +    |

+-----------------+

配置完毕后,

 将ssh key加入到GitHub中
用自己喜欢的文本编辑器打开id_rsa.pub文件,里面的信息即为SSH key,将这些信息拷贝到GitHub的Add SSH key页面就可以。
时间: 2024-10-18 19:25:33

Could not read from remote repository.的相关文章

git: fatal: Could not read from remote repository

This is probably an Intellij problem. Your key are managed natively by ssh, and Intellij has it's own ssh program. Go to the settings, search git->ssh executable then choose native As seen here : git with IntelliJ IDEA: Could not read from remote rep

git Could not read from remote repository 解决

错误: fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 解决办法: [email protected] /f/gitrepo/TestJedis (master) $ git remote

git服务端问题解决 fatal: No remote repository specified. Please, specify either a URL or a remote name from which new revisions should be fetched.

===== 下面的解决办法,可能只是适用于我遇到的这种情况,又想做钩子,又想恢复原先老人们配置的git的正常使用. ===== 因为是以前离职的员工配的,所以先检查一下原来的git能能正常使用不: 1.只有一条分支 master 2.版本库和项目目录是同一个,即 git clone [email protected]:/home/project 生产服务器上的项目目录也是: /home/project => 不知道 他们这么配的道理是什么. 3.在生产服务器上,执行 git pull,报告如下错

Push failed: Failed with error: fatal: Could not read from remote repository.

GitLab push远端,出现错误提示:Push failed: Failed with error: fatal: Could not read from remote repository. 原因: 1,账号无push的权限. 2,请添加一个正确的sshKey 添加方法: ssh-keygen -t rsa -C "账号" cat ~/.ssh/id_rsa.pub 将ssh保存到 GitLab即可

git "Could not read from remote repository.Please make&n

git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案 标签: git 2015-09-28 17:55 11492人阅读 评论(0) 收藏 举报  分类: git(2)  版权声明:本文为博主原创文章,未经博主允许不得转载. 我们在使用Git clone 或其他命令的时候,有时候会遇到这类问题,如图: fatal: Could not re

git pull 出错 fatal: Could not read from remote repository.Please make sure you have the correct access rights.and the repository exists.

Warning: Permanently added the RSA host key for IP address '192.30.252.131' 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 repositor

Failed with error: Could not read from remote repository.

Pycharm push失败,提示 Failed with error: Could not read from remote repository. ssh配置无误 通过cmd成功push λ git push Warning: Permanently added the RSA host key for IP address '52.74.223.119' to the list of known hosts. Counting objects: 21, done. Delta compre

git "Could not read from remote repository.Please make sure you have the correct access rights."解决方案

我们在使用git clone 或其他命令的时候,有时候会遇到这类问题,如图: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: Could not read from remote repository.Please make sure you have the correct acc

git提示错误关于错误:ssh: Could not resolve hostname github.com: Name or service not known.fatal: Could not read from remote repository.

关于 Git 使用中出现的错误 饥人谷_楠柒 关注 2016.11.02 15:33* 字数 746 阅读 3607评论 5喜欢 10赞赏 1 关于错误:ssh: Could not resolve hostname github.com: Name or service not known.fatal: Could not read from remote repository. QQ截图20161102144048.jpg 在我配置完公钥后想要进行远端Github上clone时出现了错误.经

[Git] Undo a commit that has already been pushed to the remote repository

If we pushed our changes already to the remote repository we have to pay attention to not change the git history (using commands like rebase, reset, amend etc). Other collaborators of the same repository might already have pulled your changes, thus r