So one fine day, I get an error message, trying to push to a remote repo:

and in the Git Log can be found:
remote: The `<redacted>' organization has enabled or enforced SAML SSO. To access
remote: this repository, you must re-authorize the OAuth Application `GitHub for VSCode`.
Attempt #1: Search result
Search results for GitHub for VSCode point to: https://code.visualstudio.com/docs/editor/github which prompts to install/authorise a new extension: GitHub PRs and Issues (??)
I try, it adds a new extension, I authorize it, but still no joy trying to Push/Pull from remote!
Attempt #2: Logout
(GH PRs/Issues is still installed)
Then I try signing out (based on a SO answer for a similar SAML SSO error)
...but how do I sign back in now!? [My current window] already has repos linked, so the options below are missing:
Answer: new window... duh!
Login - still no joy ♂️
Attempt #3: de-/re-authorize from GH UI
- [top-right] Profile button -> Settings -> [Left menu] Applications -> [top-bar] Authorized OAuth Apps
- Scroll to
GitHub for VSCodeand click...->revoke - Repeat log-in process from attempt #2
- Try to push: NEW ERROR! (Success! - well sort of...)
New Error
Next it complained about my credential.manager, which I had borked by trying commands from another SO post:
git config --global credential.helper <something I don't have>
Which I was able to recover by repeating the above command, re-using the credential.helper that I do have, from the key/value in git config -l.
Attempt #4: Permutations (?)
- Re-revoke from GH UI (link in attempt #3)
- Re-login via new window +
Clone Repository- Re-using an old, empty window will complain
Error:Bad Credentialinstead of restarting OAuth...
- Re-using an old, empty window will complain
- Nope...



