gitlab pull拉取失败,报错Access denied. The provided password or token is incorrect

项目场景:

gitlab拉取代码失败


问题描述

git pull命令报错

c 复制代码
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. 

原因分析:

吐槽:报错显示密码错误加上不久前改了密码,我陷入深思,密码到底是什么?然并软,提示不友好。直至在stackoverflow上翻一翻,然后检查了一下,原来是Personal Access Tokens过期了



解决方案:

删除令牌,再拉取一下代码,弹出窗口填入令牌

相关推荐
牛马的人生2 天前
GitLab入门教程:打开DevOps全流程的大门
运维·其他·gitlab·devops
水冗水孚3 天前
Ubuntu服务器上使用docker-compose部署 gitlab(图文并茂记录)
gitlab
<花开花落>4 天前
gitlab-runner 再次实践中理解和学习
gitlab
Vahala0623-孔勇6 天前
CI/CD流水线优化:GitLab CI镜像构建加速实战
ci/cd·gitlab
Lin_Aries_04216 天前
部署 GitLab 服务器
linux·运维·服务器·docker·gitlab·github
FreeBuf_6 天前
GitLab高危漏洞可致实例崩溃(CVE-2025-10858 和 CVE-2025-8014)
gitlab
恒雨田7 天前
Jenkins安装并与GitLab集成,实现dev、qa、uat、prod多分支持续集成的详细步骤
ci/cd·gitlab·jenkins
꧁༺摩༒西༻꧂7 天前
Windows Server 2022离线搭建Gitlab
gitlab
熙客7 天前
GitLab:代码管理
gitlab
Lin_Aries_04218 天前
通过配置 GitLab 自动触发项目自动化构建与部署
运维·docker·容器·自动化·云计算·gitlab