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. Verify your email address, if it hasn't been verified yet.

  2. In the upper-right corner of any page, click your profile photo, then click Settings.
  3. In the left sidebar, click Developer settings.
  4. In the left sidebar, click Personal access tokens.
  5. Click Generate new token.
  6. Give your token a descriptive name.
  7. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker.
  8. 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.
  9. Click Generate token.
  10. 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.

 

    重點在這里  以前的密碼換成生成的token即可

$ git clone https://github.com/username/repo.git Username: your_username Password: your_token


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM