Github: Can’t push to a remote repository on my Github


Since August 13, 2021, we can’t push to a remote Github repository by using username and password

cant push to a remote repository

tutorialspots@tutorialspots MINGW64 /d/AppServ/www/phpMoAdmin-MongoDB-Admin-Tool-for-PHP (master)
$ git push
Username for 'https://github.com': sansamour
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/sansamour/phpMoAdmin-MongoDB-Admin-Tool-for-PHP/'

You must use Github CLI to login your account first: Login Github with Github CLI on Windows

Leave a Reply