My big guess is that it's a bug from Visual Studio Code from the last update that was made some few hours before then (See the screenshot that shows that a Release was done on the same day that I was having the issue). Git remote add origin Finally, I decided to try using my default Ubuntu terminal and it worked fine. I tried removing the remote repository and re-adding it using the below commands, but still no luck: git remote remove origin git clone I tried setting my credentials again using the below commands but still no luck: git config -global user.email config -global user.name "John King" I tried recloning the project and then running the git pull command but it did not work. I did not make any changes to my GitHub credentials, neither did I change anything in the project, but I run any git command to communicate with my remote branch like: git pull origin dev I started experiencing this issue on Visual Studio Code in Ubuntu 20.04 yesterday. You can unselect the setting git.terminalAuthentication to avoid the error message. If that still doesn't work, you can switch to an SSH URL: git remote set-url origin that means you have published your SSH public key in your Account settings.įor Visual Studio Code specifically, see also " git push: Missing or invalid credentials. You can update your credentials using the Git credential helper, as in here. You can double check those settings, and make sure that your proxy, if you have one, hasn't changed.Ĭheck the output of git config -global credential.helper.Īnd make sure the credentials are your GitHub user account, and a PAT (Personal Access token).
Then, if it was working before, and if it wasn't asking for your username, it must be because you had stored your credentials (login/password) in a $HOME/.netrc file, as explained here.
First, you can make sure to use the proper URL: git remote set-url origin