在Windows上删除Git的缓存密码 [英] Remove cached password for Git on Windows

查看:333
本文介绍了在Windows上删除Git的缓存密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在工作中更新了我的Github密码(公司Github帐户).我已经在Windows 10的一个VM上配置了Git.不是每当我执行 git pull git push 时,它都会引发错误消息:

I have recently updated my Github password at work (corporate Github account). I had configured Git on one of my VM which is Windows 10. Not whenever I do git pull or git push it throws error message:

远程:无效的用户名和密码致命:"https://< my_project_repository>"

我尝试了许多在线可用选项,但是这些选项都无济于事,它可以带回用户名/密码提示.我什至尝试卸载并重新安装它,但也无济于事.

I tried many of the options available online but none of them is helping which can bring the username/password prompt back. I even tried uninstalling and reinstalling it but it didn't help either.

我没有使用Git GUI.只能通过Git bash使用它.

I am not using Git GUI. Using it through Git bash only.

有帮助吗?

推荐答案

我遇到了相同的问题.重新安装无法解决.您将必须在凭据管理器中对其进行更新.转到控制面板>用户帐户>凭据管理器> Windows凭据.您会在列表中看到Git凭据(例如git:https://).单击它,更新密码,然后从您的Git bash执行git pull/push命令,它不会引发任何错误消息.

I have encountered the same issue. Reinstalling won't solve it. You will have to update it in your Credential Manager. Go to Control Panel > User Accounts > Credential Manager > Windows Credentials. You will see Git credentials in the list (e.g. git:https://). Click on it, update the password, and execute git pull/push command from your Git bash and it it won't throw any error message.

这篇关于在Windows上删除Git的缓存密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆