I have been trying to upload the changes of my project to GitHub for more than a week but when I write the command git push
and enter the credentials of my account, it gives me this message:
Username for 'https://github.com': Password for 'https://[email protected]': remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/Braylin16/thecanario.git/'
The most curious thing is that I close the session of my account in the browser, on the website and when I start the session again with the same credentials that I place in the console, the session opens without any problems and I have already done this a million times becando if it is an error in some of the keys of my PC but nothing of that.
I really don't know what is causing this problem. I tried another console called GitBash and it also throws me the authentication error on that console.
Someone help me please.
Some time ago GitHub sent emails explaining that using authentication as a means of authentication
git push
was no longer a good idea, so they advised us to use Token , which is much more secure. What happens my friend is that they no longer accept your username and password as a means of authentication to upload your updates to the remote GitHub serverStep 1
What you have to do is simple. Go to GitHub and then to Setting once there go down to the Developer Setting option and then Personal access tokens if you want here I leave a direct link
Step 2
Once there you just have to press the Generate new token button and complete the form. NOTE: I recommend you to enable all the options of the form by pressing the checkboxes in order to have all the privileges.
Step 3
Now you just have to type the following word in your Windows search engine > Credential Manager
Then you have to select the Windows Credentials option : And click where it says
atom-github/https//api.github.com
there you will get a field where you can place the tokens that I automatically generate in GitHub and hit save.Finally, you just have to close your console and return to April and re-launch the command
git push
and enter your user again, but now instead of entering your password, you are going to enter the token that I generate whenever you go to do a git push