【发布时间】:2013-09-12 02:21:16
【问题描述】:
我正在使用 Cygwin 和 Git。每次我使用 https url 推/拉到 Bitbucket 上的存储库时,都会要求我输入密码。 有没有办法存储这些凭据(比如使用 ssh-keys)?
我尝试安装 Windows Credential Store for Git,但无法让它与 cygwin 的 Git 一起使用。
谢谢!
更新:
我在这里找到了答案:Is there a way to skip password typing when using https:// on GitHub?
总结:
记住密码 15 分钟(默认):
git config --global credential.helper cache
记住密码 10 小时:
git config --global credential.helper 'cache --timeout=36000'
存储密码(没试过):
git config --global credential.helper store
重置:
git config --unset --global credential.helper
西姆
【问题讨论】:
-
下次如果你找到答案,就写一个你自己问题的答案(你可以,这是一个很好的做法),而不是写编辑问题把答案放进去
-
我尝试了“存储密码”选项并且它有效,即使在重新启动 cygwin 之后也是如此。没有尝试更多。
标签: windows git passwords cygwin bitbucket