- 我一直在自己的git 分支做开发,最近开发完成,使用 git push 提交到远端,总是push失败,报的错误
就是
remote: You are not allowed to push code to this project.
fatal: unable to access 'http://git.intra.***.git/': The requested URL returned error: 403
之前一直是可以成功 push 到远端的,可能某一天我做过什么操作,但没记得和git 配置有关的,结果现在我就无法提交代码了
请问有人遇到过吗 ?
可能是git凭证出现了错误,如果是,你可以看看下面步骤:
进入“控制面板” => "用户帐户" => "管理您的凭证" => "Windows凭据 / 普通凭据" ,到此发现在普通凭据中有多个git凭证,确认后发现有错误的凭证,修改后就能顺利的push代码了。参考链接: https://gitlab.com/gitlab-com...