背景 :
gitlab修改了 密码
操作:
idea -> git -> pull
提示 : remote: HTTP Basic: Access denied fatal:
Authentication failed for https://项目.git
度娘方法:
git config --system --unset credential.helper
git config --global credential.helper store
--修改密码 git config --global user.password "新密码"
git config --global --replace-all user.password "要修改的密码"
自己研究方法 :
git remote -v
origin https://账号密码@gitlab.项目 (fetch)
origin https://账号密码gitlab.项目 (push)
发现密码一直还是旧密码
找到项目目录进去修改
.git/config 找到https://账号密码@gitlab.xxxx 修改为 https://gitlab.xxxx