如何在GitHub上建立私有Git存储库?可能吗? [英] How do I set up a private Git repository on GitHub? Is it even possible?

查看:80
本文介绍了如何在GitHub上建立私有Git存储库?可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算仅以邀请的方式将我的源代码共享给几十个用户.源代码本身不应公开.允许并鼓励参与者提交更改.因此,我需要将源代码控制(最好是Git)托管在可对多个用户进行私有访问的公共服务器上.

I intend to share my source code on an invite-only basis to a few dozen users maybe. The source code itself should not be public. Participants are allowed and encouraged to submit their changes. So I need source control, preferably Git, hosted on a public server with private access for multiple users.

我了解到可以在GitHub上使用https://链接建立私有Git存储库.在GitHub本身上,这样的项目不会显示在搜索中.对于参与的用户,项目显示一个锁定"图标.因此,显然存在私有存储库;我只是不知道如何设置.许多教程使用SSH来建立私有存储库,但是它们都要求您拥有自己的服务器".

I learned that it is possible to set up private Git repositories on GitHub which use https:// links. On GitHub itself such a project does not show up in searches. For participating users the project shows a "lock" icon. So there are obviously private repositories; I just don't know how set one up. A lot of tutorials use SSH to set up private repositories but they all require you to have "your own server".

在推送/拉动源代码时,我不在乎安全连接,也没有GitHub的信任问题.我所关心的就是仅授予我邀请的用户访问权限.也许我很幼稚,并且只能通过商业托管(例如取消混淆

I don't care about secure connections when pushing/pulling source code nor do I have trust issues with GitHub. All I care about is giving access only to users I invite. Maybe I'm naive and such a solution is only available via commercial hosting (e.g., Unfuddle, Assembla), but if not, I'd really like to know how it's done!

推荐答案

2019年1月7日,GitHub 宣布了免费和无限制的面向所有GitHub用户的付费和不付费私人存储库.创建新存储库时,只需选择私有"选项.

On January 7th 2019, GitHub announced free and unlimited private repositories for all GitHub users, paying or not. When creating a new repository, you can simply select the Private option.

这篇关于如何在GitHub上建立私有Git存储库?可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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