玖叶教程网

前端编程开发入门

记录一次Git经验 : remote: HTTP Basic: Access denied fatal:

背景 :

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

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言