git 突然 403

错误提示

[root@ip-172-31-76-59 smatdeals-go]# git pull
remote: [session-6140649f] Access denied
fatal: unable to access 'https://gitee.com/sh_base/smatdeals-go.git/': The requested URL returned error: 403

Linux 系统(凭据存在 ~/.git-credentials 或缓存中)

# 清除缓存的凭据
git credential-cache exit

# 删除明文存储的凭据文件(若存在)
rm -f ~/.git-credentials
rm -f ~/.config/git/credentials

# 重新拉取,会提示输入新凭据
git pull
posted @ 2025-07-31 17:04  Lafite-1820  阅读(18)  评论(0)    收藏  举报