`

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

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

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

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

    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.

    githack泄露利用_softlysu3_ctfgithack_githack_CTF之.git泄露_githack下载_

    GitHack 是一个针对 `.git` 目录泄露的利用工具,主要用于网络安全竞赛(CTF,Capture The Flag)中的Web安全领域。`.git` 目录是Git版本控制系统的一部分,通常包含项目的完整历史记录和敏感信息,如源代码、配置...

    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_GUI操作说明文档

    Git是一个由Linux之父Linus Torvalds开发的分布式版本控制系统,用于跟踪代码变更以及协调多人合作的项目。GIT_GUI是一个图形用户界面,用于与Git交互,它的设计是为了方便那些不习惯于使用命令行界面(CLI)的用户...

    Version_Control_with_Git_2nd_Edition.pdf

    powerful tools and tecbniqure for collaborative software development

    Git文件缓存分离组件Gitsym.zip

    特性:Clones of the source repository are small and fast because no binaries are transferred, yet fully functional with complete metadata and incremental retrieval (git clone --depth has ...

    Git_V2.5.1_64_bit_setup.1441791170

    windows32位系统使用的GIT.非常实用的版本控制工具

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

    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