Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PatrickNiyogitare28/fe965bb3b307e04ecce51b644010bf0a to your computer and use it in GitHub Desktop.
Save PatrickNiyogitare28/fe965bb3b307e04ecce51b644010bf0a to your computer and use it in GitHub Desktop.

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

error

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

Why that error

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

How to resolve

Let's see how you can quickly get this resolved in the simplest way so that you can keep working.

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

  1. Remove remote origin git remote remove origin
  2. Reset the remote origin including your token you created git remote add origin https://<token>@<git_url>.git

Now you are good to go

Author

PatrickNiyogitare28

Twitter Badge

@danparker276
Copy link

Thanks! This worked great, even thought GitHub made things less secure making your token more visible on sourcetree or other git apps

@PatrickNiyogitare28
Copy link
Author

PatrickNiyogitare28 commented Jun 30, 2021

Welcome MR @danparker276, let's wait possibly they'll get an alternative better way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment