当前位置:   article > 正文

解决GITHUB:Support for password authentication was removed. Please use a personal access token instead

support for password authen

问题描述:

今天使用github,执行git push时,遇到非常奇怪的提示:

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: unable to access "..." : The requested URL returned error: 403

昨天该仓库都可正常使用。经查询发现是github更改了离线登陆验证和授权的方法,以前的方式不能用了。必须使用新的PAT(Personal Access Token)。具体使用方法列举如下,可参照stack overflow 的问答:

1. 进入并登录github界面,按照下列顺序生成PAT

Settings => Developer Settings => Personal Access Token => Generate New Token  => 填写表格 => Generate token => 复制PAT

生成的PAT大概是这个样子的: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

踩坑:在填写表格时,注意赋给所需的必要权限,本人自己使用,因此把所有的checkbox都勾选了。如下图

 

 2. windows系统使用git,可以到控制面板 => 凭据管理器 => Windows凭据 => 修改原先的github凭据,或者新建普通凭据。在密码部分填写PAT。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/人工智能uu/article/detail/741920
推荐阅读
相关标签
  

闽ICP备14008679号