git config --global user.name "git账户名" 生成ssh公钥和私钥,直接enter就可以,注意记下位置(找到id_rsa.pub文件) ssh-keygen -t rsa -C "git账户名" 2、打开gitee,进入设置--->ssh公钥(github也是一样的操作 settngs--->SSH and GPG keys) 创建公钥,将id_rsa.pub文件内容填入 而后就可以clone自己需...
git init 1. 可以在刚创建的仓库中测试一下SSH Key ssh -T git@github.com 1. 出现you‘re successful,即为成功。 5.clone github仓库上的代码到本地,OK git clone xxxxxxxx 1. 如果是在使用git提交代码时出现 fatal: Could not read from remote repository 首先,将本地生成的 id_rsa以及id_rsa.pub这...
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 怎么解决: 先查看当前的账号和邮箱, git config user.name git config user.email 如果有误的话可以切换用户名和邮箱: git config --global user.name "xxx" git config --glo...
Administrator@SWXXL20R68J0TAD MINGW64 /d/repository/git$ git clone git@git.coding.net:feihangchen/itency.gitCloning into 'itency'...git@git.coding.net: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the rep...
Could not read from remote repository.Please make sure you have the correct access rights. 出现这个问题是因为没有在github账号添加SSH key 解决方法如下: 1.在终端输入。 ssh-keygen -t rsa -C "username" (注:username为你git上的用户名)
里面写了我们直接用/usr/local/bin/git clone git@gitee.com:scKyleZhang/kzmall.git会报没有权限创建kzmall这个文件夹。这时候我们下意识会在命令前面加sudo去解决。后来将旧文件夹删除,用当前账户身份创建了一个新的文件夹才可以。 于是我用sudo chown -R geely:geely /developer/gitdownload命令把gitdownload...
github git 文件删除 Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you ha 之前使用git进行push或者clone操作的时候出现如下错误:Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access righ...
gitclone 项目时,出现Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrights. 这就说明你没有添加github的SSHKey或者需要重新添加。 步骤如下:1、重新在git设置一下身份的名字和邮箱gitconfig –global [Grieet] 添加key的问题 fromremoterepository.Pleasemakesureyouhavethecorrectaccessrightsandthe...
在使用git提交代码时出现 fatal: Could not read from remote repository 这个错误,很简单 首先,将本地生成的 id_rsa以及id_rsa.pub这两个文件删除掉 然后,使用命令 ssh-keygen -t rsa -C "邮箱地址"重新生成密钥 最后,将id_rsa.pub文件里的内容复制到 git 的SSH key保存目录下即可。
针对你遇到的 git clone could not read from remote repository 错误,这个问题可能由多种原因引起。以下是一些可能的解决步骤,你可以按照这些步骤逐一排查和解决问题: 检查网络连接是否正常: 确保你的设备可以正常访问互联网。你可以尝试访问其他网站或使用 ping 命令来检查网络连接。 确认远程仓库的URL是否正确: 检...