remote: Support for password authentication was removed
周末提交代码,把代码push到github上,控制台报了下面的错误:
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/ formore information
表示远程推送不再支持密码验证了,改成 token 验证了。
解决方案
- 首先要生成token,在 github 上找到setting -> Developer settings ->Personal access tokens->Generate new token
在配置页面配置好权限后,即可生成token,注意这里需要保存好token,因为只显示一次。
- 设置token,这里分成两种情况,代码已经有的,远程仓库地址添加token;没有代码的,在git clone添加token
- 修改远程仓库添加token
git remote set-url origin https://<your_token>@github.com/<USERNAME>/<REPO>.git
- git clone 添加token
git clone https://<your_token>@github.com/<USERNAME>/<REPO>.git
添加好token就可以推送和下拉代码了。
###遇到的坑
- 在idea上的github上设置token没效果,这个具体原因未知
- 网上一大堆介绍如果生成token,但是重点是第二步,添加或者更新token。
remote: Support for password authentication was removed相关推荐
- github报错“remote: Support for password authentication was removed on August 13, 2021. Please use a p”
1 报错原因 remote: Support for password authentication was removed on August 13, 2021. Please use a pers ...
- remote: Support for password authentication was removed on August 13, 2021
1.github在2021年8月14日七夕这天搞事情,如果这天你提交了github代码报错如下: 问题:remote: Support for password authentication was ...
- github开发人员在七夕搞事情:remote: Support for password authentication was removed on August 13, 2021.
一. 问题描述 如果你在七夕(没错就是2021年8月14日)的这一天刚好加班,又刚好去访问了全球最大的同性交友网站,又刚好去更新提交代码,又或你创建了一个新的仓库送给自己,又刚好想把这个仓库送给(pu ...
- remote: Support for password authentication was removed on August 13, 2021.
问题描述 有一段时间没有使用github了,今天提交代码发现无法提交,出现以下提示: remote: Support for password authentication was removed o ...
- gitpush出现remote: Support for password authentication was removed on August 13, 2021.
git push 报错: Username for 'https://github.com': xxx Password for 'https://jianfee@github.com': remot ...
- github上传代码报错remote: Support for password authentication was removed on August 13, 2021. Please use a
文章目录 项目场景: 问题描述和原因分析: token方式登录: 生成自己的token 在个人设置页面,找到Setting 左侧边栏 选择开发者设置 Developer setting 选择个人访问令 ...
- git remote:Support for password authentication was removed on August 13, 2021.personal access token
github remote: Support for password authentication was removed on August 13, 2021. Please use a pers ...
- 你发现了没?Github在七夕搞事情:remote: Support for password authentication was removed on August 13, 2021.
录友们都知道,卡哥每天都要维护刷题攻略Github仓库,https://github.com/youngyangyang04/leetcode-master. 但就在七夕,如果你和卡哥一样也要写代码, ...
- github remote: Support for password authentication was removed on August 13, 2021.
1 问题描述 遇到这个问题:remote: Support for password authentication was removed on August 13, 2021. Please use ...
最新文章
- 【机器学习】机器学习算法优缺点对比(汇总篇)
- ubuntu18.04.4 录制麦克风音频
- 2017软件工程实践第二次作业(数独)
- 阻止默认行为是配合passive使用
- qt 中 设置 背景的方法
- 1012 数字分类 (20 分)(C语言实现)
- 49 SD配置-定价配置-定义条件类型
- (220)FPGA内部组成LUT介绍
- php写cms,浅谈thinkPHP,国内写CMS利用率最高的框架
- javascript拖拽之从浏览器外拖拽(drag)
- freeswitch官方文档网站
- 期权、期货及其他衍生品 Chapter14 维纳过程与伊藤引理
- 【美少女】阿里巴巴实习三个月总结
- 热点的ap频段哪个快_热点ap频段有什么区别
- 桌面小部件Widget
- 详解 LVS、Nginx 及 HAProxy 工作原理
- openvswitch vxlan 源码分析
- 小白如何进入IT行业及如何选择培训机构
- 华为手机无法安装ADB和HDB的处理
- 把int转换为char把int转换为char