修改gitlab密码后,git无法push代码到远程仓库。
报错如下
git push
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.cn/demo.git/'
系统:windows10
版本控制工具:git
远程仓库:自建gitlab
仓库连接方式:https
git在连接仓库时采用账号密码验证方式,而windows将账密保存在凭据管理器,需要手动去修改。
运行对话框(win+R)
输入control /name Microsoft.CredentialManager
找到git:
打头的条目,可能会有多个,选择gitlab替换你的密码
GitLab remote: HTTP Basic: Access denied and fatal Authentication