试图用 git for windows 理解 wincred - 困惑
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38333752/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Trying to understand wincred with git for windows - confused
提问by j obe
While following a git tutorial, I've made my first push over https today to a remote on git hub, the tutorial mentions the following command to avoid having to keep typing in password details:
在遵循 git 教程的同时,我今天第一次将 https 推送到 git hub 上的远程,教程提到了以下命令以避免继续输入密码详细信息:
git config --global credential.helper wincred
My question is how is this working as a concept? it is the first time I have come across a credential helper. I'm not sure how it works with Windows and Git, where is it being stored and how does it authenticate when I push or pull?
我的问题是这是如何作为一个概念工作的?这是我第一次遇到凭证助手。我不确定它如何与 Windows 和 Git 一起使用,它存储在哪里以及在我推或拉时如何进行身份验证?
I've tried to search for this online but haven't found any information that explains this in a simple way for someone who is a beginner.
我试图在网上搜索这个,但没有找到任何信息以简单的方式为初学者解释这一点。
回答by Gauthaman Sahadevan
回答by patthoyts
See the MSDN documentationfor Windows credential management. The git interface to this just uses the provided API to store your credentials securely. Functions like CredEnumerateand CredWriteget used to check the stored credentials and add or update them.
有关Windows 凭据管理,请参阅MSDN 文档。git 接口仅使用提供的 API 来安全地存储您的凭据。CredEnumerate和CredWrite等函数用于检查存储的凭据并添加或更新它们。