Git push: Missing or invalid credentials. fatal: Authentication failed for ‘https://github.com/username/repo.git’

You are trying to use git from a terminal in vscode.
The problem comes from the authentication handler of vscode.
To solve the problem:

  • Open vscode File > Preferences > Settings
  • Search for git.terminalAuthentication
  • Uncheck the option

You have to re-open the terminal to make it work.

As of March 2022, the menus have changed a bit. Here’s an illustration of how to access them:
enter image description here

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)