From 3bdbb482ca651a5aef1f03529ecf084b0cc8d9b6 Mon Sep 17 00:00:00 2001 From: waylau Date: Sun, 9 Nov 2014 13:52:50 +0800 Subject: [PATCH] =?UTF-8?q?add=20Git=20=E4=BF=9D=E5=AD=98=E4=BD=A0?= =?UTF-8?q?=E7=9A=84=20Github=20=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...Hub password in Git 保存你的 Github 密码.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Caching your GitHub password in Git 保存你的 Github 密码.md diff --git a/Caching your GitHub password in Git 保存你的 Github 密码.md b/Caching your GitHub password in Git 保存你的 Github 密码.md new file mode 100644 index 0000000..20428cb --- /dev/null +++ b/Caching your GitHub password in Git 保存你的 Github 密码.md @@ -0,0 +1,18 @@ +Caching your GitHub password in Git 保存你的 Github 密码 +=========== + +如果是 [使用 HTTPS 来复制 github 项目库](https://help.github.com/articles/which-remote-url-should-i-use), 可以使用 credential helper 来 告诉 Git 记住你的 Github username 和 password ,当你跟 github 交互时。 + +如果你使用的 是 SSH ,你通过 SSH keys 来代替 username 和 password 实现验证。有关设置,查看[Generating SSH Keys](https://help.github.com/articles/generating-ssh-keys) + +*提示: 需要 Git 1.7.10 或更新的版本来支持 credential helper.* + +如果你安装了 [Github 客户端](https://windows.github.com/),credential helper 已经包含在内,这个应用也包含了一个 Git shell, 所以不需要和配置 Git 了。 + +如果你使用命令行,你可以安装一个原生的 Git shell, 比如 [msysgit](https://msysgit.github.io/),使用下列命令行来储存你的验证。 + + git config --global credential.helper wincred + +*参考*:[https://help.github.com/articles/caching-your-github-password-in-git/ +](https://help.github.com/articles/caching-your-github-password-in-git/ +)