Git问题档案

在尝试clone远程GitHub仓库时遇到Permissiondenied错误,通过运行ssh-Tgit@github.com验证身份后,成功克隆但推送时仍遇到权限问题。解决方案是确保具有正确的访问权限并检查仓库是否存在。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Git问题档案

从今天开始,我正式开始将我在使用git过程中遇到的问题记录到这个文章中。

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值