remote: Access denied

2021-09-10  本文已影响0人  malgee
pod repo add MGSpecs https://gitee.com/xxx/MGSpecs.git
Cloning spec repo `MGSpecs` from `https://gitee.com/xxx/MGSpecs.git`
[!] /usr/local/bin/git clone https://gitee.com/malgee/MGSpecs.git -- MGSpecs

Cloning into 'MGSpecs'...
remote: Access denied
fatal: unable to access 'https://gitee.com/xxx/MGSpecs.git/': The requested URL returned error: 403

出现这个问题的原因是: 远程服务端的用户名和密码与当前系统中git保存的用户名和密码有冲突

解决方案:

  1. 如果账号密码有变动 用这个命令 git config –-system –-unset credential.helper重新输入账号密码 应该就能解决了
  2. 如果用了第一个命令 还不能解决问题那么 用这个命令: git config –-global http.emptyAuth true
上一篇下一篇

猜你喜欢

热点阅读