git拉下来的项目代码提交remote: [session-784e9fb9] Access denied异常

错误场景还原

在别人仓库通过仓库URL来Clone的代码,在修改后想要提交到自己创建的gitee远程仓库,出现remote: [session-784e9fb9] Access denied异常。

解决方法

首先通过输入下方命令检测远程地址是否正确。

git remote -v

结果如下:

若不正确:使用下方命令删除远程地址

git remote rm origin

再通过下面的命令添加自己创建的gitee远程仓库

git remote add origin <你的项目地址(远程仓库地址)>

项目地址(远程仓库地址)在这

再重新push即可。(如果你需要清空仓库上传的记录先看下文)

当然,如果从别人的gitee仓库上克隆项目,贡献者可能会出现别人。(当然我清空了记录没有出现)。

想清除可以通过下面这个别人写的文章,按步骤在项目目录控制台傻瓜式操作即可删除。因为我也是照着这个操作的哈哈。

http://t.csdn.cn/80r5O

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
It seems like you are getting an "HTTP Basic: Access denied" error when trying to perform a Git remote operation. This error typically occurs when the remote repository requires authentication, but you are not providing the correct credentials. To resolve this issue, you can follow these steps: 1. Double-check the remote URL: Make sure that the remote URL you are using is correct. It should include the protocol (e.g., `https://`) and the correct repository URL. 2. Verify your credentials: If the remote repository requires authentication, ensure that you have the correct username and password or access token. Check if you have entered them correctly or if they have changed. 3. Update your Git configuration: If you have recently changed your credentials or access token, you might need to update your Git configuration to reflect the new credentials. You can use the following Git command to update your credentials: ``` git config --global credential.helper cache ``` This command enables caching of your credentials for a certain period, so you don't need to enter them repeatedly. 4. Check network connectivity: Ensure that you have a stable internet connection and can reach the remote repository's server. Try accessing the remote URL in a web browser to verify its accessibility. If none of these steps resolve the issue, it is possible that the remote repository's access controls or permissions need to be adjusted. In such cases, you may need to contact the repository administrator for further assistance.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值