我是一个使用SSO的组织的一部分。通过web访问存储库没有问题,它将我重定向到SSO登录,仅此而已。
当我首先通过Git-Bash登录到GitHub上的个人存储库时,问题就开始了,我做了一些更改,然后我想在我的组织的存储库中进行更改。当我运行下面的命令时,它写到我需要重新授权OAuth应用程序,但是我不明白如何:
$ git push --delete origin v0.1.3
remote: The `<my_company>' organization has enabled or enforced SAML SSO. To access
remote: this repository, you must re-authorize the OAuth Application `Git Credential Manager`.
fatal: unable to access 'https://github.com/<my_company>/myproj.git/': The requested URL returned error: 403
我怎样才能重新授权登录?
我试着重新打开Git-Bash,但它也给我写了同样的错误。
发布于 2022-01-07 15:25:10
对于VSCode用户或任何其他IDE,您需要重新授权应用程序!
转到GitHub -> Applications -> OAuth Apps上的设置,搜索"GitHub for VSCode",然后从“.”中选择"Revoke“。菜单。
如果您随后在VSCode中注册并再次登录,则应提示您重新授权。
https://stackoverflow.com/questions/66475833
复制相似问题