How to re-authorize the OAuth Application 'Git Credential Manager'
Answer a question
I am part of an organization that uses SSO in Github. I don't have problem to access the repository through the web, it redirects me to SSO login and that's all.
The problem started when I logged-in first to my personal repository on GitHub through Git-Bash, I did some changes and then I wanted to do changes in a repository from my organization. When I run the below command, it wrote me that I need to re-authorize the OAuth Application, but I don't understand how:
$ 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
How can I re-authorize the login?
I tried to re-open Git-Bash but it wrote me the same error.
Answers
My company just enabled SSO for my Github Org overnight so was getting the same error running git pull
. I fixed this with the following steps.
- Open Credential Manager in Windows and delete the existing credential for github.com
- Re-initialise the cred manager in git bash:
git config --global credential.helper manager-core
- Re-run
git pull
and follow the pop-up instructions to authenticate in a browser (which happened automatically for me with SSO).
After those steps git commands worked for me again.
更多推荐
所有评论(0)