Creating a token

  1. In the upper-right corner of any page, click your profile photo, then click Settings.
  2. In the user settings sidebar, click Personal access tokens.
  3. Click Generate new token.
  4. Give your token a descriptive name.
  5. Select the scopes you wish to grant to this token.
  6. Click Generate token.
  7. Copy the token to your clipboard. For security reasons, after you navigate off this page, no one will be able to see the token again.
  8. more detail check on this link : https://help.github.com/articles/creating-an-access-token-for-command-line-use/