Cannot get SourceTree to accept a Github personal access token

TamarGranor February 12, 2025

I recently set up a new Windows 11 computer. I installed the latest version of Sourcetree. When I try to set up either a previously existing or a newly generated Personal Access Token for Github, it gets rejected. Here are my steps:

1) Open SourceTree (currently version 3.4.22).

2) Tools | Options | Authentication

3) Click Add

4) Set Hosting Service to Github.

5) Set Authentication to Personal Access Token

6) Click Refresh Personal Access Token

7) A Windows Security dialog opens including the instruction "Enter your PAT as the password for https://github.com"

8) Put my GitHub user name in the User Name textbox. (This username works for logging into GitHub.)

9) Paste the Personal Access Token into the Password textbox.

10) Click OK.

Observed: Login failed. Authentication failed for GitHub with username <my user name> - please check your account settings.

Expected: This to work.

Notes: I was finally able to clone a repository I need using Git Bash with the older PAT, and once I had a local version, I was able to open it in SourceTree, but I can't push or pull.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events