-3

getting an error while trying to push my code to github after adding a token on github


remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/username/student-API.git/'

used git push, then got the error

Habeeb Tijani
  • 1
  • 3
  • 14

1 Answers1

2

As stated on page linked directly in the error message you need to use Personal Access Token instead of your Github password (that you normally use to login to Github) when git asks for password (or when you cache password using credential manager).

So, to make this work you need to go to Settings > Developer Settings > Personal Access Tokens and create either fine grained or classic token and then use that instead of password.

blami
  • 6,588
  • 2
  • 23
  • 31