Published on

Remote: Invalid username or password.

Authors

Last Modified : Tuesday, Aug 20, 2024

Error

remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/freetoolsarebest/api.git/'

Why is this happning?

This error specifies that what ever username and password that you set are not able to verify your identity.

If you have set up Personal access tokens for authentication then they might have expired.

Solve

First verify that you are setting correct username and email address

# set up username
git config --global user.name "FIRST_NAME LAST_NAME"

# set up email
git config --global user.email "MY_NAME@example.com"

After this head over to your Personal access token page, and check if your key is expired or not.

If it is expired then create new key and now try to use that for verification.

This should solve the issue with Invalid username and password.


programming

os

git