github上使用智能HTTP [英] github uses Smart HTTP

查看:135
本文介绍了github上使用智能HTTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置密码缓存,但它在我以为我很奇怪倒是已经这样做了。从电子邮件到github上,看来他们改变事情有点:

I setup password caching, but it's odd in that I thought that I'd already done that. From an e-mail to github, it seems that they changed things a bit:

您好Thufir,

你们看到的是,所有新创建的回购现在使用
  智能HTTP,而不是SSH默认情况下。我们有帮助的文章在这里,
  介绍如何在此处进行更改:
   https://help.github.com/articles /为什么 - 是 - 混帐始终要求换我的密码

What you are seeing is that all newly created repos are now using Smart HTTP instead of SSH by default. We have a help article here that explains how to change it here: https://help.github.com/articles/why-is-git-always-asking-for-my-password

我们也有一个博客文章在这里:
   https://github.com/blog/1104-credential -caching换手腕友好-混帐使用

We also have a blog post about it here: https://github.com/blog/1104-credential-caching-for-wrist-friendly-git-usage

这是我看到的奇异之处在于我似乎记得那些如下明确的方向前一段时间,对于缓存的密码。

The oddity which I see is that I seem to recall following those exact directions some time ago, for caching the password.

另外,是不是有更好的办法,也许公钥?我不太肯定我的密码是缓存,但我知道,这不是个好主意。 (我在Linux上所以不能使用电子邮件建议的.exe文件。)

Also, isn't there a better approach, with a public key perhaps? I'm not quite sure where my password is cached, but I know that it's not such a great idea. (I'm on Linux so cannot use the suggested .exe in the e-mail.)

推荐答案

您可以使用SSH连接到Github上。他们有一个 SSH密钥的情况下,引导您没有添加你的公钥您的Github上的帐户呢,然后你需要做的就是使用SSH回购网址,而不是HTTPS URL回购的克隆版本库。

You can use SSH to connect to Github. They have an SSH key guide in case you haven't added your public key to your Github account yet, and then all you have to do is use the SSH repo URL instead of the HTTPS repo URL to clone your repository.

您可以点击旁边的按钮在哪里回购网址列出找到SSH URL。如果您已经克隆了HTTPS版本库,你可以在SSH URL添加的新的的远程瞄准和使用,对推/拉免密码!

You can find the SSH url by clicking the button next to where the repo URL is listed. If you've already cloned the HTTPS repository you can add a new remote pointing at the SSH URL and use that for push/pulling password-free!

这篇关于github上使用智能HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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