Git keeps asking me to enter username and password

Viewed 804

Recently, I generated a new personal access token on GitHub and then the problems started occurring. Earlier, I could easily clone a repository with HTTPS without entering username and password on Git. Also, I could easily push changes to a repository without entering username and password. But, now I have to enter username and password on a pop up every time I push changes or clone a repository.

1 Answers

Just visit this page on GitHub and follow the instructions:

  • set credential helper first (explained clearly in the page)
    • for different types of credential helpers for different OSs' follow this link
  • then on the next prompt for password use your PAT instead (again explained clearly)
Related