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.
Let's see how this works and move on to our lives!
Select Personal Access Token and click on Generate new 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.
Now, you can use your PAT in place of your password and your code will be 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
That's it, now we can get back to our bugs peacefully!
Top comments (1)
An even better solution exists! "Encrypt the credentials with GPG and store it".
Check this for more info:
Managing Git credentials the easy way
Arunanshu Biswas ・ Jul 31 ・ 1 min read
The project: arunanshub/git-credential-netconf