githubversion-controlatlassian-sourcetree

When I try to pull or push in GitHub, I am getting an error message: "Please use a personal access token instead."


I am using the version control as GitHub through SourceTree, but it is getting failed from 13th August, the below is the error I am getting from 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.

Anybody know what was the problem, or how can I use the personal access token?


Solution

  • Since the OP is using SourceTree, do the following:

    1. Generate your Personal access tokens in Github account setting.
    2. Double click a repository in SourceTree, click Setting icon in the top right of the popup window.
    3. Click Remotes in the menu tab. You will see the remote URL of this repository, which should be like this https://github.com/username/repo.git.
    4. Click Edit and change it to https://<your_token>@github.com/username/repo.git.

    DONE.