remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.



From August 13, 2021, GitHub is no longer accepting account passwords when authenticating Git operations, and will show the message below when you are trying to use methods before.

-----------------------------------------------------------------

Git Message 

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

-----------------------------------------------------------------

Instead, you need to add PAT (Personal Access Token). 


First, you need to generate a PAT on GitHub following the steps below:

  • Settings => Developer Settings => Personal access tokens => Generate a personal access token => Fill the form => click Generate token => copy the generated token, which is something like "ghp_***"
Second, clone or set remote url with PAT
  • git clone https://<username>:<githubtoken>@github.com/<username>/<repositoryname>.git
  • git remote set-url origin https://<username>:<githubtoken>@github.com/<username>/<repositoryname>.git

No comments:

Post a Comment