出现场景
拉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或者以前登录过的账号

右键删除即可

本文介绍了在Windows和Mac上遇到从Gitee克隆仓库时出现403错误的原因和解决方案。错误通常是由于已有账号的密钥信息导致的。解决方法是删除旧的密钥信息,然后重新尝试git clone操作。在Windows中,需清理Git的SSH密钥;在Mac上,可在钥匙串访问中找到并删除Gitee相关密钥。
1360





