Use token to push some code to GitHub – “Support for password authentication was removed” [duplicate]

GitHub announced their intent to require the use of token-based authentication for all authenticated Git operations. They will no longer accept account passwords when authenticating Git operations on GitHub.com:

Generate token:

  • Go to your GitHub account token settings
  • Generate a token

On Mac:

  • Go to keychain Access
  • Press the Login tab and all items
  • Click GitHub key
  • Change the password to the recent generated token

Enter image description here

On Windows:

  • Go to Control PanelUser AccountsCredential Manager

  • Edit the Generic Credential of GitHub

  • Paste the token instead of the password

Enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)