第一天开始学习使用git中遇到的问题

本文详细介绍了在使用Git向GitHub仓库推送代码时遇到的常见错误:“Please make sure you have the correct access rights and the repository exists.”文章提供了有效的解决方案,包括检查SSH连接状态及重新配置远程仓库地址。

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

在自己电脑上安装好Git之后,在进行上传案例到github的仓库中时,

$ git push -u origin master
报错

Please make sure you have the correct access rights
and the repository exists.

网上有一部分给出的解释是与github未连接成功

$ ssh -T git@github.com

但本人在输入之后提示

Hi flora0103!You're successfully authenticateu,but GitHub does not provide shell access。

证明是已经成功了的。

解决的方法是重新在输出一遍

$ git remote add origin git@github.com:yourname/youremail

$ git push -u origin master

 

 

转载于:https://www.cnblogs.com/shuai-ran/p/10698760.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值