Sign in to GitHub

Error when I attempt to push my local repo to GitHub

$ git push -u origin master
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for ‘https://github.com’: email@prodataman.com
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: Authentication failed for ‘https://github.com/ProDataMan/Git-Demo.git/’

If you have seen this error message when trying to push from a local Git Repo to a Remote Repo in GitHub then you have come to the right place!

The issue is caused by a change in the way GitHub allows remote users to connect. If you read the post, at the link provided in the error message above, there are details about the change and instructions on how to use a Personal Access Token to authenticate instead of Password Authentication. Its all very good background info and one might even say an interesting read… However, if your only goal is to connect and push your changes and get on with development then all of that detail is unnecessary. So to that end lets get straight to the point.

All you really need to do is upgrade your local copy of Git. If you are seeing this error it is most likely because you are running an older version of Git that doesn’t support the preferred authentication method or rather can’t configure for it automatically. You can run Git –version to determine the version of your current and if it is anything other than the latest version then the solution is simple.  Load the Latest!

In the screenshot below the Git Version is 2.15.0 the current version is 3.36.1 so we are a little behind…  


Git version
Git version

The solution is simply to upgrade your local copy of Git then attempt to connect again. You can download the latest version of Git from this link: https://git-scm.com/downloads.

Download Git
Download Git

Once the latest version of Git is installed you can simply attempt to push your changes to your Remote GitHub Repository again.   At this point you will be prompted to Connect to GitHub.  

Sign in to GitHub
Sign in to GitHub to link the remote repo

You can click Sign in with your browser and if you are already logged into GitHub you will immediately get a notification that login was successful.  At this point the issue should be resolved and your Push to the Remote GitHub Repository should complete successfully.

No Push Error with Current Git Version
No Push Error with Current Git Version

In Summary if you have an older version of Git and you attempt to Push to a Remote GitHub Repository and Get an Error indicating that Support for password authentication was removed on August 13, 2021 the simple solution is to download and install the latest version of Git from here then execute your push command again.  Problem solved!

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Shopping Cart