4、github不支持密码改为token设置操作

github不支持密码改为token设置操作

1)clone 仓库提示不支持密码:

1
2
3
4
5
6
7
192:blog zhongzunfa$ git clone https://github.com/zhongzunfa/Hexo.git
Cloning into 'Hexo'...
Username for 'https://github.com': zhongzunfa
Password for 'https://zhongzunfa@github.com':
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.
fatal: Authentication failed for 'https://github.com/zhongzunfa/Hexo.git/'

-w915

  1. 解决方案一:
    在github中, 找到setting,滑到最后找到Developer settings
    在选择Personal access tokens
    -w971
    创建完成后,在clone代码后,提示输入密码时,就输入生成的token即可.

3)解决方案二:

未完成。

坚持原创技术分享,您的支持将鼓励我继续创作!
0%