Git问题档案
从今天开始,我正式开始将我在使用git过程中遇到的问题记录到这个文章中。
-
kex_exchange_identification: Connection closed by remote host. fatal: Could not read from remote repository.
这是当我在一个新的本地文件夹中clone别人的项目时git bash报告的。
做法:因为我以前有配置过git的相关配置了,我在该文件夹目录下输入:ssh -T git@github.com
。
然后git报告:Hi linyn-zero! You've successfully authenticated, but GitHub does not provide shell access.
问题解决了,可以clone了!
$ git push
ERROR: Permission to xxxxx.git denied to linyn-zero.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.```