解决git clone提示You hasn‘t joined this enterprise

出现场景

gitee的私人仓库时出现以下错误

adodeMacBook-Pro:flutter ado$ git clone https://gitee.com/xxx/xxx-project.git
Cloning into 'uoffer-android'...
remote: [session-57469386] You hasn't joined this enterprise!
fatal: unable to access 'https://gitee.com/xxx/xxx-project.git/': The requested URL returned error: 403

原因

已经使用过其他账号拉过代码,所以有gitee账号的密钥信息。

解决

删除以前的密钥信息即可,再重新使用git clone拉代码。

windows

mac

启动台中找到钥匙串访问打开
在这里插入图片描述
在所有项目中搜索gitee或者以前登录过的账号
在这里插入图片描述

右键删除即可
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/adojayfan/article/details/123122399