As mentioned in marpo-it's answer, the setting
git.terminalAuthentication can be unchecked (since VSCode 1.45)
That will avoid that, for Git commands invoked in the Integrated Terminal, like
git push for instance, you would automatically be authenticated against your GitHub account.
I have set up credentials by using git config user.name "your username" and git config user.password "your password", and could see these by running
git config --list, what am I missing here?
Those are not "credentials": they won't help authenticate you to a remote service like GitHub.
For HTTPS URLS (
https://github.com/<me>/<myRepo>), you would need to:
There you would enter your actual credentials:
- your GitHub user account name
- your GitHub user account password (or a PAT if you have 2FA activated)
But if the issue disappear today, then this was linked to this GitHub incident.
Andreas L also mentions in the comments that trying to authenticate from an integrated VS Code terminal can be tricky.
As detailed in "
git push origin master Missing or invalid credentials", and here:
If you work with the JSON-settings file, insert the following line into it: