0
点赞
收藏
分享

微信扫一扫

解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403

我的电脑一直录入的是我的gitee账号,平常和同事协作开发,git pull、git clone等git操作都没有报错过。但是,今天要git clone另一个gitee账号的项目代码,出现报错403(如图1),我们一起来看看原因和解决办法。

解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403_重启

一、原因分析及其解决办法

1-1、error:403常见原因是无权访问。

1-2、问题分析和解决

更换本机录入的gitee账号和密码,以下是更换步骤:

1、打开控制面板

解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403_git切换账号_02

2、点击用户账号

解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403_git_03

3、点击“管理Windows凭据”

解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403_403_04

4、点击编辑更换账号密码

解决git clone时fatal: unable to access ‘https://gitee.com/XXX.git/‘: The requested returned error: 403_403_05

5、修改完后保存即可

到此,就可以继续正常执行git操作了。如果有报错,重启CMD终端窗口或者计算机在进行git操作。

举报

相关推荐

0 条评论