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 天前
Ubunt20.04搭建GitLab服务器,并借助cpolar实现公网访问
linux·服务器·gitlab
HalukiSan3 天前
如何提交PR
git·gitlab·github
东林牧之3 天前
CICD[软件安装]:docker安装gitlab
docker·容器·gitlab
东林牧之3 天前
CICD[导航]、docker+gitlab+harbor+jenkins从安装到部署
docker·gitlab·jenkins
一世一生命4 天前
Windows下Gitlab多账号(3个及以上)SSH配置
运维·ssh·gitlab
裁二尺秋风4 天前
CI/CD — Pipeline的使用以及Blue Ocean多分支流水线的使用方法
ci/cd·gitlab·jenkins
北海之灵5 天前
docker desktop部署本地gitlab服务
docker·容器·gitlab
兔老大RabbitMQ5 天前
GitHub vs GitLab 全面对比报告(2025版)
gitlab·github
CC码码6 天前
管理你的多个 Git 密钥(多平台多账号)
git·gitlab·github
CC码码6 天前
管理你的多个 Git 密钥(单平台多账号)
git·gitlab·github