Git – How to Solve “remote: Invalid username or password. fatal: Authentication failed”

Configurare noua (How To)

Situatie

Solutie

Pasi de urmat

You will first create a git repository where you will be pushing all your project files. And for that, you need to be installed with GitBash too.Checking whether GitBash has been installed on our machine successfully or not

Checking GitBash

Go to settings in your Github account >> Developer settings >> Personal access token >> Tokens (classic) >> Generate new token. See the images attached below for a better understanding.

B) Once you are ready with the token go again to your GitBash terminal and execute the push command. You will be redirected to a popup as shown in the image below:

POPUP

Next, here in the pop-up tab you can:

  1. Simply copy and paste the token which you have generated just now.
  2. Or, you can go ahead and click on Sign in with your browser.

Once that is done you have finally reached your destination, you will be redirected to a new page saying, see the image below.

Succeded

Once this is done close the tab and go to GitBash again and you will see the error is been solved and all the files must be uploaded successfully.

UPLOADED successfully

Tip solutie

Permanent

Voteaza

(14 din 24 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?