Source tree fix for git Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Viewed 33731

FYI this is specifically for sourcetree I am having this error when pulling in sourcetree, it was working just fine yesterday but it suddenly had this error.

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.
fatal: unable to access 'https://github.com/London-Foster/frontend.git/': The requested URL returned error: 403

I tried having a personal access token and use it on source tree but still was not able to login.

7 Answers

1 - Generate a new token from git dev settings

2 - In SourceTree, you just need to change your repository settings there:

enter image description here

enter image description here

3 - Change the URL/Path with the new format:

https://<USERNAME>:<TOKEN>@<GIT_URL>.git

enter image description here

4 - Press OK and it is good now!

in source tree > open repo settings > remotes tab > edit the remote "URL/path" to be

https://{personal-access-token>@github.com}/{<my-repo>}.git>

then save and try to push

i did like @heratyian answer and works fine.

I went: Tools>Options>Authentication. Edited my account.

I changed Authentication from Basic to OAuth. And now the brownout no longer affects me.

I have solved the issue, just to ad up on woland's comment.

First add a personal access token then add it in your credentials Second add a remote by clicking the gear settings then add a remote Add the remote of your repository then link it with your account that has logged personal access token. lastly fetch to that remote origin.

Related