Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

 

3 answers

0 votes
dbuker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 21, 2025

I'm having the same problem. I tried the suggestion that TamarGranor made without success.

0 votes
TamarGranor February 18, 2025

I was able to solve my own problem by deleting the Atlassian folders I found in my Users/<My user name>/AppData tree and then running SourceTree again and using the Personal Access Token to log in when prompted.

0 votes
RaulH12
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2025

Have the same problem here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events