While pushing some codes into your GitHub repository you may encounter the error "Support for password authentication was removed. Please use a personal access token instead." as shown in the picture below
Starting from August 13, 2021, GitHub has stopped accepting passwords for verifying Git operations on user accounts. Instead, you will need to use a Personal Access Token (PAT) in place of your password. To add a PAT to your system, you can follow the steps outlined below.
Step 1: Go to your GitHub Account and then go to the Settings(click on your profile account and you will find the Settings option there)
Step 2: Scroll down and at the sidebar you will see the Developer Settings option. Click on Developer Settings.
Step 3: Click on Personal access tokens and then click on Tokens (classic)
Step 4: Click on Generate new token and then click on Generate new token (classic)
Step 5: Fill-up the Note field, select No expiration and then select the checkboxes as shown in the picture
Step 6: Click on the Generate token. Your token is created!.
Step 7: Copy the token and paste it on the password field of the terminal.
Your code got successfully pushed into your repository!
However, after applying your token you may face this error.
Visit this blog(https://dev.to/shafia/common-github-issues-beginners-may-face-29bb) and follow the steps given in Error 3 Solution 1.
Happy coding!
Top comments (16)
really helpful
thank you so much, good help
Great! It is just what I was needing. Thank you.
Thanks
Thanks for sharing!
man, you save my school work, thank you very much <3
Thanks! it worked :)
Beautiful sharing.
i am really thankful for this !!!!!
Thanks bro!