搜索
热搜: 活动 交友 discuz
查看: 4882|回复: 0

[JAVA] 解决github推送错误 remote: Support for password authentication was remo...

[复制链接]

57

主题

58

帖子

1230

积分

超级版主

Rank: 8Rank: 8

积分
1230
发表于 2024-3-26 10:23:56 | 显示全部楼层 |阅读模式
推送github仓库代码,输入完账号密码出现:
  1. remote: Support for password authentication was removed on August 13, 2021.
  2. remote: Please see https://docs.github.com/en/get-s ... ing-with-https-urls for information on currently recommended modes of authentication.
复制代码

是因为自从 21 年 8 月 13 后不再支持用户名密码的方式验证了,需要创建个人访问令牌(personal access token)。
解决办法如下:
在 GitHub 上生成令牌,应用于所需的仓库中
  1. 1.点击 settings
  2. 2.点击右侧的 Developer settings
  3. 3.点击 Personal access tokens(个人访问令牌)
  4. 4.点击 Generate new token
  5. 5.设置 token 信息
  6. 6.根据所需过期时间,建议设置成永远,以免麻烦,建议所有选项都选上
  7. 7.点击 Generate token 生成令牌
  8. 8.得到生成的令牌
  9. 然后再次执行 pull push 操作
复制代码






下一篇:git 推送出现fatal: the remote end hung up unexpectedly解决方案
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

抖音账号
关注抖音
加入粉丝群,抽取论坛金币


Archiver|手机版|小黑屋|IT趣-GEEK社区

GMT+8, 2024-7-27 16:05 , Processed in 0.071238 second(s), 22 queries .

Powered by Discuz! X3.4. 技术支持 by 巅峰设计

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表