我如何更新Git的密码? [英] How do I update the password for Git?

查看:374
本文介绍了我如何更新Git的密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用BitBucket与Xcode和Git进行版本控制,最近我更改了所有密码(感谢Adobe!)。



<不出所料,我再也无法将我的本地提交推送到位于BitBucket上的存储库( Authentication for failed for'https://______.git'),但我忘记了如何在我的iMac上更新缓存的密码。不知何故,我一直无法找到它在Google或堆栈溢出,但在我看来,它应该是相当简单的... ...

解决方案

  git config --global credential.helper osxkeychain 

code>

然后系统会再次提示您输入密码。



对于Windows,它是一个具有不同参数的命令:

  git config --global credential.helper wincred 


I'm using BitBucket with Xcode and Git for version control, and recently I changed all of my passwords (thanks Adobe!).

Unsurprisingly, I'm no longer able to push my local commits to my repository on BitBucket (Authentication failed for 'https://______.git'), but I'm forgetting how to update the cached password on my iMac. Somehow I've been unable to find it on Google or Stack Overflow, though it seems to me it should be rather straightforward...

解决方案

To fix this, you can use

git config --global credential.helper osxkeychain

You'll then be prompted for your password again.

For Windows, it's the same command with a different argument:

git config --global credential.helper wincred

这篇关于我如何更新Git的密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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