Git日常报错
总阅读次
文章目录
- git 无法clone
1
2
3
4
5
6
7
8
9takethat@acer_v5573g MINGW32 /d/Project/Qt_project
$ git clone git@github.com:vivatakethat/Qt_Project.git
Cloning into 'Qt_Project'...
Warning: Permanently added the RSA host key for IP address '192.30.255.113' 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-add报错
1
2
3takethat@acer_v5573g MINGW32 /d/github/hexo_lifeSpring
$ ssh-add /c/Users/takethat/.ssh/id_rsa_lifespring
Could not open a connection to your authentication agent.
解决:请先执行
You might need to start ssh-agent before you run the ssh-add command:
1 | $ eval `ssh-agent -s` |
再执行
1 | ssh-add |
- clone仓库时候解决办法:
1
2
3fatal: Could not read from remote repository.
Please make sure you have the correct access rights
- 生成key
root@t470p:~/.ssh# ssh-keygen -t rsa -C vivatakethat@foxmail.com
把key上传到github网站上