Resolving Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
If you're trying to run git push origin main
or basically accessing your remote git and you get the bellow error this blog is for you to get it resolved
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/PatrickNiyogitare28/please-golf-api.git/': The requested URL returned error: 403
Git since 30/06/2021 git basic password authentication in gitbush or git CLI is deplicated and it's no longer working. You can read more on this here
Let's see how you can quickly get this resolved in the simplest way so that you can keep working.
- Create your github access token
- Update the
remote origin url
to use token
Feel free to jump that step creating access token if you have already created your github access token
Note that you don't need to create a new access token for each project, It will depend on previlages you need to include in the access token
- Remove remote origin
git remote remove origin
- Reset the remote origin including your token you created
git remote add origin https://<token>@<git_url>.git
Now you are good to go
Thanks! This worked great, even thought GitHub made things less secure making your token more visible on sourcetree or other git apps