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.
I'm having the same problem. I tried the suggestion that TamarGranor made without success.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have the same problem here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.