如何为我的密钥存储密码,以便在Windows上使用git时可以提交并从存储库中提取密码? [英] How do I store a password for my key so I can commit and pull from repository when using git on windows?

查看:96
本文介绍了如何为我的密钥存储密码,以便在Windows上使用git时可以提交并从存储库中提取密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能指出我需要看的方向,所以我可以用我私钥所需的密码来配置我的GIT客户端吗?每当我从我的存储库中推拉时,它都会要求我输入密钥。我使用命令行,并安装了Windows GIT客户端以使用ssh。



感谢您的任何指示。

解决方案

您必须重新创建您的默认ssh密钥并使用空密码。然后再将公共部分上传到git服务器。



如果您在客户端和服务器上使用特定的产品,那么要更具体一些就很难了。 b
$ b

另一种方法是使用ssh-agent,但我不知道这是否也适用于Windows或类似的东西。


Can someone point me in the direction I need look so I can configure my GIT client with the password needed for my private key? Every time I push and pull from my repository it asks me for the password for my key. I use command line and have the windows GIT client installed to use ssh.

Thanks for any pointers.

解决方案

You have to recreate your default ssh key and use an empty passphrase. Then upload the public part again to the git server.

Without specific products you use on client and server it is a bit difficult to be more specific.

An alternative is to use ssh-agent, but I have no clue if this also works on Windows or if something similar is available.

这篇关于如何为我的密钥存储密码,以便在Windows上使用git时可以提交并从存储库中提取密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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