You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have generated personal token on github and entered it in password field successfully, but when I try to fetch from my repo sourcetree throws me following error:
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --no-tags Room
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.
fatal: unable to access 'https://github.com/daisoto/room.git/': The requested URL returned error: 403
I have tried deleting my accounts from sourcetree and logging in again, but I still receive this error.
However, if I use console there is no error. Is proves that there is some error or my mistake in using sourcetree account managament.
This is actually a workaround of a bug. The bug is, even if you remove/change the old authentication method, the SourceTree will still try to use the old one. It is restored even if you uninstall and make a fresh install of the app.
To prevent this after removing the old git credentials, delete Atlassian folder from all the appdata folders. Then go to Tools->Settings->Authentication and add a new Basic Github authentication. Enter the Github username(not the e-mail) and use your token as the password. It should work after that.
I had the same issue, and found this link:
it require to modify (simply) the repository link.
it worked immediately.
There are many different issues you might face.
We have tried to dig into each of them and resolve them all finally.
This article could be helpful for you: https://howieyoung.medium.com/suffering-from-the-latest-403-error-from-github-on-sourcetree-e04a844efd35