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粘贴后登录,问题解决!
相关推荐
一点程序4 小时前
基于SpringBoot的选课调查系统
java·spring boot·后端·选课调查系统
怪兽源码6 小时前
基于SpringBoot的选课调查系统
java·spring boot·后端·选课调查系统
csdn_aspnet6 小时前
ASP.NET Core 中的依赖注入
后端·asp.net·di·.net core
昊坤说不出的梦7 小时前
【实战】监控上下文切换及其优化方案
java·后端
疯狂踩坑人7 小时前
【Python版 2026 从零学Langchain 1.x】(二)结构化输出和工具调用
后端·python·langchain
橘子师兄9 小时前
C++AI大模型接入SDK—ChatSDK封装
开发语言·c++·人工智能·后端
@ chen9 小时前
Spring事务 核心知识
java·后端·spring
一点技术10 小时前
基于SpringBoot的选课调查系统
java·spring boot·后端·选课调查系统
RANCE_atttackkk11 小时前
Springboot+langchain4j的RAG检索增强生成
java·开发语言·spring boot·后端·spring·ai·ai编程
好好研究12 小时前
Spring Boot - Thymeleaf模板引擎
java·spring boot·后端·thymeleaf