DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for "Support for password authentication was removed on August 13, 2021. Please use a personal access token instead."
raystatic
raystatic

Posted on

"Support for password authentication was removed on August 13, 2021. Please use a personal access token instead."

Recently, everyone is getting this message from Github.

So, Github has removed the support for password authentication and now we have to use Personal Access Token (PAT) in place of passwords to authenticate ourselves.

Message

Let's see how this works and move on to our lives!

  • Go to your settings
    Settings

  • Select Developer Settings
    Developer Settings

  • Select Personal Access Token and click on Generate new token
    Genrate new token

  • Select expiration duration and scopes for the token.
    Create Token

  • Once token is created make sure to copy your token to somewhere safe because you won't be able to see it again.
    If you lost it, you will have to create a new one.
    Token Created

  • Now, you can use your PAT in place of your password and your code will be pushed.
    Code pushed

If you don't want to enter your PAT every time, you can save your git credentials in cache.

git config --global credential.helper cache
Enter fullscreen mode Exit fullscreen mode

That's it, now we can get back to our bugs peacefully!

Top comments (1)

Collapse
 
arunanshub profile image
Arunanshu Biswas

An even better solution exists! "Encrypt the credentials with GPG and store it".

Check this for more info:

The project: arunanshub/git-credential-netconf

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›