697.【git】解决:remote: Permission t

2023-06-10  本文已影响0人  七镜

一、报错详情如下:

PS E:\personal\golang\config> git push origin main
remote: Permission to isqijing/config.git denied to multfunc.
fatal: unable to access 'https://github.com/isqijing/config.git/': The requested URL returned error: 403

二、报错原因

新注册了github账号,导致新的github账号与缓存的旧的github账号冲突。

三、解决步骤

  1. 下载安装凭证管理器
    下载链接:Releases · microsoft/Git-Credential-Manager-for-Windows (github.com)
  1. 【控制面板】-【用户账户】-【凭证管理器】,找到github的凭证并删除
  2. 再次执行 git push 时,会弹出登录界面

  1. 授权成功


  2. 成功push


上一篇 下一篇

猜你喜欢

热点阅读