In october 2022, I created a GitHub personal access token (classic) for Sourcetree, and saved it in the macOS keychain. Expiring date october 2023.
I deleted my local repo and used GitHub Desktop for Mac to clone it from remote.
After that, Sourcetree can access the github remote again and doesn't show that dreaded "Password Required" dialog. I didn't even need to re-new the entry in Sourcetree's list of repos because I cloned it to the same local location.
Yay. It works again...
I was curious what the reasons were. So I compared the new local folder with the old one (which I of course didn't delete but only rename).
In the new config file, the remote url was https://github.com and not git@git.github.com.
So I tried to change my config file of another no-longer-working repo to https:// also. But it still didn't work, so there must be more changes in the .git subfolder than just the config file. I gave up and just cloned this repo also again with GitHub Desktop and that new clone also worked in Sourcetree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was reading this due to a very similar problem. GitHub Desktop was using HTTPS instead of SSH which is why it was working. I still can not connect via SSH with any of my repos, but am able to connect via HTTPS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1 year later....yeah I had workarounds for a while - had to switch to HTTPS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.