天天看點

github送出需要使用token的使用說明

問題如下:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

解決方法如下:

  1. In the upper-right corner of any page, click your profile photo, then click Settings.
    github送出需要使用token的使用說明
  2. In the left sidebar, click Developer settings.
    github送出需要使用token的使用說明
  3. In the left sidebar, click Personal access tokens.
    github送出需要使用token的使用說明
  4. Click Generate new token.
    github送出需要使用token的使用說明
  5. Give your token a descriptive name.
    github送出需要使用token的使用說明
  6. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker.
    github送出需要使用token的使用說明
  7. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo.
    github送出需要使用token的使用說明
  8. Click Generate token.
    github送出需要使用token的使用說明
    github送出需要使用token的使用說明
  9. Warning: Treat your tokens like passwords and keep them secret. When working with the API, use tokens as environment variables instead of hardcoding them into your programs.
$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token