gitgithubgit-clonepersonal-access-tokenprivate-repository

authentication was removed. Please use a personal access token instead


Error when trying to connect to GitHub:

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: unable to access 'https://github.com/ershubhamyadav/dream365web.git/': The requested URL returned error: 403

Solution

  • get the solution to follow below simple steps.

    1. Go to GitHub
    2. Click on the profile picture
    3. Select setting
    4. Select Developer settings
    5. Select Personal access tokens
    6. Click on Generate new token
    7. Type Expiration time
    8. Select your preferred scopes
    9. Click on Generate token
    10. Finally, you can copy that token and use it to authenticate