- go to this url - click
- click "Generate New Token (Classic)"
Don't click beta one
-
It will ask you to enter your github password, enter that
-
Then this screen will come

enter a note.
set date as "No Expiration".
Select Scopes - ideally you only select scopes you want, but since we are using this personal token in local system so. select all checkboxes.
now when u click generate, a token will appear on your screen, copy that
thats your access token
now next time when you are cloning via HTTPS, you can pass this token as username and password