For absolutely no reason that I may think of, the Visual Studio Code built-in Git SCM stopped working, only returning authentication failed, not only in Visual Studio Code, but also in the terminal.
A weird thing is that last night it was working fine. Just to wonder today it’s not working any more.
- I use Ubuntu 21.04 (Hirsute Hippo), and I have two-factor authentication enabled in GitHub.
- I tried to create a personal access token, but I can’t find anywhere to put it for Git SCM in Visual Studio Code to work correctly across all repositories without exposing it.
By Visual Studio Code Git SCM stopped working I mean:
- Can't pull/push to a remote repository using the built-in Git extension in Visual Studio Code
- Can't issue the clone command for private repositories
How can I re-enable the extension functionalities, without using email and password or appending access token before the remote URL path as specified here?
PS: I have the GitHub Copilot Git extension enabled and it’s authenticated properly in Git (properly working)