remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
在21年8月13日的时候github通知大家现在的git需要验证声明token才能访问
怎样使用访问token
1、打开 GitHub 点击在主页面的右上边个人头像
2、之后点击下拉中
1) Settings 2) Developer settings 3) Personal access tokens 4) Generate new token ,标题随便去别和之前重复就行、token过期日期看自己意愿、权限我是选择的 repo 5)Generate token 。
这是clone代码时使用的
git clone https://<令牌token>@github.com/<用户名>/<项目名>.git
这是代码已存在修改代码原路径信息的,
git remote set-url origin https://<令牌token>@github.com/<用户名>/<项目名>.git