If you try entering password, for any git cli commands like clone, pull or push to perform some actions on your repository that is hosted on github.com. It wont work anymore. Because, GitHub removed the password authentication. Instead, We have to use personal access token. That should be generated on your github account.
How to Create Personal Access Token in GitHub?
First login to your github account. At the right top corner, click on your profile and go to settings.
Here you will find lot of options related to your profile, login, security and other options. Scroll down and click on developer settings.
Then we could see few options like Github apps, O auth Apps, and Personal access token. Here click on Personal access token.
Just read this information if you want. This is the page where we could see list of tokens available on this account. This is the first time, we are going to create a token, so it wont list any tokens. Lets create new one now. just click on this button, generate new token.
This is the main form where we have to give information like, name for this token, Validity of token expiration and what kind of access we have to give for this token. Let me put Some meaningful name for this token.
Then expiration. Expiration is nothing but a validity for the token. If the validation is expired, this token cannot be used. You can give 7 days, 30 days, 60 days, 90 days, custom date and even you have no expiration.
This token has to be stored in a secured place. Also you wont see this page again. Because if we lost this token, it cannot be recovered. then we have to regenerate new token.
DevOps Full Course Tutorial for Beginners – DevOps Free Training Online
Docker Full Course Tutorial for Beginners – Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners – Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners – Ansible Free Training Online
Openstack Full Course Tutorial for Beginners – Openstack Free Training Online
Learn Linux, DevOps and Cloud