your account has 2FA enabled and you must use a personal access token

从gitlab上拉下来代码后不能push,报错:remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password,在其他博客中找的答案------例如在git命令参数后面带上token的方法统统都不管用

解决办法:

  1. 在gitlab上新建一个token,复制新建的token备用
  1. 打开idea,依次找到 File/Settings/Verson Control/gitlab ,然后你会发现这里会让你登录,把第一步复制的token粘贴后登录,问题解决!
相关推荐
To_OC5 小时前
跑了3个Docker容器后,我终于搞懂镜像和容器到底啥关系
后端·docker·容器
东风破_5 小时前
Docker 基础:为什么需要容器?
前端·后端·nginx
东风破_5 小时前
Docker 实战:使用 Nginx 作为容器入口代理 Node 服务
前端·后端·nginx
Lyyaoo.6 小时前
Spring Boot Validation 声明式参数校验
spring boot·后端·mysql
剩下了什么6 小时前
float32 与 float64 精度陷阱:如何在 Go 中避免错误使用
开发语言·后端·golang
Rain的Java大神之路6 小时前
介绍一下分布式事务
java·分布式·后端·spring·spring cloud·架构·springcloud
IT_陈寒10 小时前
Vue的响应式什么时候会失灵?这个坑我踩了
前端·人工智能·后端
Patrick_Wilson11 小时前
Web 认证方案技术指南
前端·后端·面试
与驴OO11 小时前
设计 Skill 系统,这 3 个坑我替你踩过了
后端·aigc
爱勇宝11 小时前
客户只想看个页面,我却做了一个静态演示发布系统
前端·javascript·后端