Github需要在控制台登录才能进行一次回购 [英] Github need login in console only for one repo

查看:83
本文介绍了Github需要在控制台登录才能进行一次回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我拉或推动私人回购协作时,我必须写登录名和密码。对于其他回购即。我的私人回购券可以使用私钥登录。如何避免提供登录信息?

When I pull or push to private repo I collaborate, I have to write login and password. For other repos ie. my private repos I can log in with private key. How to avoid providing login informations all the time?

推荐答案

这里的问题是您如何访问远程仓库。使用 git remote -v ,您可以看到所有远程回购站点。以'git @'开头的文件是用ssh访问的,因此使用你的证书认证,但以'http'或'https'开头的文件通过HTTP加密并需要外部认证。

The problem here is how you access the remote repo. With git remote -v you can see all the remote repos. The ones that start with 'git@' are accessed with ssh and therefore use your certificate authentication, but the ones starting with 'http' or 'https' are accesed by HTTP and need external authentications.

这里最好的解决方案是将所有repos添加为ssh。

The best solution here would be to add all the repos as ssh ones.

希望这有助于您。

这篇关于Github需要在控制台登录才能进行一次回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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