From your GitHub home page, click on your profile icon on the right.
2
Next, click "Settings" to locate the GitHub token options.
3
Click "Developer settings" from the options on the left sidebar.
4
Next, click "Personal access tokens" to get your unique access token.
5
Make sure to select the "Tokens (classic)" instead of Fine-grained tokens. The alternative option is typically only used in enterprise settings and large companies.
6
Next, hit "Generate new token."
7
GitHub will ask which type of token you want. Select "Generate new token (classic)" to proceed with creating a classic token.
8
Give your new personal access token a name.
9
After you name your token, set your expiration day. You can set it for as little as seven days or as long as you want.
10
Make sure to define any scopes you would like your token to have. For example, you should click the checkbox marked "repo" if you want to edit your repository files.
11
Finally, hit "Generate token," and GitHub will create your personal access token so you may access your repositories remotely.