`

Git_Please make sure you have the correct access rights.and the repository exist

    博客分类:
  • Git
 
阅读更多

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

 

via: http://www.forwhat.cn/post-144.html

 

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 repository exists.

出现这个问题是因为,没有在github账号添加SSH key

 

解决方法如下

在终端输入。

 ssh-keygen -t rsa -C "forwhat.cn"//注意。forwhat.cn为用户名

如果执行成功。返回

Generating public/private rsa key pair.

Enter file in which to save the key (/home/forwhat.cn/.ssh/id_rsa): 

在这里就是设置存储地址了.反正我是直接按的回车 然后还会返回(最初我这儿设置了存储位置才导致这个报错)

Enter passphrase (empty for no passphrase):

再次直接回车。

Enter same passphrase again:

再次回车。

Your identification has been saved in /home/forwhat.cn/.ssh/id_rsa.

Your public key has been saved in /home/forwhat.cn/.ssh/id_rsa.pub.

The key fingerprint is:

...

The key's randomart image is:

...

这样SSH key就生成了。

把显示出来的直接添加到github账户设置里边的SSH keys

回来在git pull

就开始远程拷贝代码了

分享到:
评论

相关推荐

    pro git_中文版.pdf

    It took the open source world by storm since its inception in 2005, and is used by small development shops and giants like Google, Red Hat, and IBM, and of course many open source projects. ...

    Git.Best.Practices.Guide.1783553731

    This book is invaluable to anyone who wants a thorough reference guide to go back to every time they have questions about any feature of Git. Table of Contents Chapter 1. Starting a Git Repository ...

    org.eclipse.egit.repository-5.5.0.201909110433-r.zip

    Eclipse EGit是一个强大的开源工具,它将Git版本控制系统集成到Eclipse IDE中,使得开发者可以在熟悉的开发环境中进行Git操作,大大提升了代码管理和协作的效率。在本文中,我们将详细讲解EGit的功能特性,并指导...

    Git.Mastering.Version.Control.pdf

    However, this learning path will help you overcome this fear and become adept at all the basic and advanced tasks in Git. This course starts with an introduction to version control systems before ...

    Git.Version.Control.Cookbook.1782168451

    As you progress through this book, you will learn how you can automate the usual Git processes by utilizing the hook system built into Git. The book also covers advanced repository management, ...

    Manning.Git.in.Practice.2014.9.pdf

    - **Creating Pull Requests**: To create a pull request, fork the repository, make changes, and submit the pull request. GitHub provides a web interface for reviewing and merging pull requests. - **...

    Git-2.39.1-64-bit

    native set of tools that bring the full feature set of the Git SCM to Windows while providing appropriate user interfaces for experienced Git users and novices alike.

    Git-2.21.0-64-bit.zip

    from in the local repository and in the published repository are different. * When creating a partial clone, the object filtering criteria is recorded for the origin of the clone, but this ...

    Git_New_Repository:该存储库用于学习GIT

    Git_New_Repository这个存储库,正如其标题所示,是一个专为学习Git而设立的资源库。在这个仓库中,我们可以找到关于Git的基本操作、工作流程以及高级用法的示例。 Git的核心概念包括版本控制、分支管理和协作流程...

    git安装包git-2.34.0-64-bit.rar

    1. **基本概念**:理解Git的基本术语,如仓库(Repository)、提交(Commit)、分支(Branch)、合并(Merge)和克隆(Clone),是使用Git的第一步。 2. **初始化和配置**:在安装Git后,用户需要配置用户名和电子...

    git_ros_dep.zip

    when you try to install ros in china without proxy, it is hard for you to do "rosdep init"and you will get errors, in order to solve this issue, you have to download this file to update rosdep

    Learn.Git.in.a.Month.of.Lunches.1617

    Helpful for both newbies who have never used source control and busy pros, this book concentrates on the components of Git you'll use every day. In easy-to-follow lessons that take an hour or less, ...

    Visual Studio

    to learn more ,you can review the list of common issues and workarounds or examine the log file. Cordova 3.0 Plugin 安装 及"git" command line tool is not installed 根据...

    Professional.Git.epub

    the ability to work effectively with Git is rapidly approaching must-have status, and Professional Git is the comprehensive guide you need to get up to speed quickly. Table of Contents PART I: ...

    leetcode答案-git_collect_sub:git_collect_sub

    leetcode 答案 【toc】 git_collect_sub 个人收集的有用项目,使用git submodule方式,引用已有项目。 项目环境 ...the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed git

    Git 32位_2.11.1.exe客户端

    5. 追踪远程仓库:`git remote add origin <repository URL>`添加远程仓库并命名为origin。 6. 推送更改:`git push -u origin master`将本地master分支的更改推送到远程仓库的master分支。 7. 拉取更新:`git pull ...

    Android source code management

    Android source code management An introduction to Git, Repo, and Gerrit for Android developers

    OSError: Looks like you do not have git-lfs installed【没有root权限】

    LFS是Large File Storage的缩写,用了帮助git管理大的文件 ...对于git lfs来说,在使用git lfs track命令后,git push的时候,git lfs会截取要管理的大文件,并将其传至git lfs的服务器中,从而减小仓库的体积

    Professional Git [2017]

    Professional Git ... the ability to work effectively with Git is rapidly approaching must–have status, and Professional Git is the comprehensive guide you need to get up to speed quickly.

Global site tag (gtag.js) - Google Analytics