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过期了



解决方案:

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

相关推荐
IT大白鼠8 小时前
GitLab 未认证 RCE 应急实战CVE-2026-97229(CVSS 10.0)
网络·安全·gitlab
7177776 天前
Git自建用什么工具比较好:Gitea、Forgejo、GitLab CE与Gitee的选型对比
git·gitlab·gitea
colinu8 天前
Create gitlab-runner
gitlab
master3369 天前
GitLab 10.x → 19.5.x 升级路线图
gitlab
长不大的杨瑞杰10 天前
OpenCode v2 GitLab 集成实战:Issue 驱动开发、MR 审查与 CI/CD 最小权限
人工智能·ci/cd·gitlab·ai编程·opencode
极小狐15 天前
极狐GitLab万人并发架构实践,大规模组织的扩容路线图
架构·gitlab·极狐gitlab
Lvan的前端笔记16 天前
GitLab CI 环境变量整理
ci/cd·gitlab
李迟17 天前
CICD实例:解决GitLab Runner无法执行CICD问题
gitlab
hanjq_code19 天前
gitlab本地文件 跨分支 忽略改动 不提交
gitlab
极小狐19 天前
极狐GitLab集群高可用方案,多节点架构与故障自愈实践
架构·gitlab·高可用·极狐gitlab