使用 Bitbucket 等免费 Mercurial 托管的问题

发布于 2024-08-14 21:12:25 字数 207 浏览 5 评论 0原文

我使用 Mercurial 作为我的 SCM,主要是因为我喜欢即使在离线状态下也能够向项目提交更改的能力。我很快就要搬家了,所以我决定寻找一些免费的 Mercurial 存储库托管,这样我就不会丢失数据。我注册了一个 Bitbucket 帐户,我注意到他们的免费帐户只为一个私人存储库提供空间。这是否意味着我的一些东西最终可能会公开?例如,任何人都可以下载并在他们的项目中使用它吗?

I'm using Mercurial as my SCM, mainly because I like the ability to commit changes to a project even while offline. I'm going to be moving PCs soon and so I decided to look into finding some free Mercurial repo hosting so I don't lose my data. I signed up for a Bitbucket account and I noticed that they offer space for only a single private repository with their free accounts. Wouldn't that mean that some of my stuff might end up publicly available? As in, anyone can download and use it in their projects?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

小草泠泠 2024-08-21 21:12:25

是的,BitBucket 只免费提供一个私有仓库。

编辑: 请参阅下面的评论,BitBucket 现在提供任意数量的私有仓库,免费计划的限制是最多 5 个用户访问这些私有存储库。


但是,如果您只是担心将项目转移到新机器上,我认为 BitBucket 就有点过分了。您是否会同时拥有两台机器,即使是很短的一段时间?

如果是这样,我只会使用 hgserve 在旧机器的每个项目目录(一次一个)和 hgclone http://ip.of.old.machine:8000/projectname将更改克隆到新​​计算机上。

编辑:如果您正在寻找一种在不公开共享存储库的情况下进行备份的方法,您可以获得Dropbox 帐户并将每个存储库的副本克隆到本地计算机上的 Dropbox 文件夹中。每当您推送更改时,它们都会自动同步到 Dropbox。

如果您的计算机着火并更换它,您只需安装 Dropbox,然后从 Dropbox 文件夹中的存储库克隆到您的首选位置。

如果您想在多个平台(例如,从 Windows 机器和 Linux 机器)上使用存储库的 Dropbox 副本,我不确定这是否有效。

Yes, BitBucket only offers one private repository for free.

Edit: See the comments below, BitBucket now offers as many private repos as you want, the restriction on the free plans is a maximum of 5 users accessing these private repos.


However, if you're just worried about transferring the projects to your new machine, I think BitBucket is overkill. Will you be in possession of both machines at once, even for a short period of time?

If so, I would just use hg serve in each project directory (one at a time) of the old machine and hg clone http://ip.of.old.machine:8000/ projectname to clone the changes onto the new machine.

EDIT: If you're looking for a way to back up without sharing the repos publicly you could get a Dropbox account and clone a copy of each repo to the Dropbox folder on your local machine. Whenever you push changes they'll get synced up to Dropbox automatically.

If you computer catches on fire and you replace it you just install Dropbox and then clone from the repos in the Dropbox folder to your preferred location.

I'm not sure how well this would work if you want to use the Dropbox copy of the repo on multiple platforms (from a Windows box and a Linux box, for example).

绅刃 2024-08-21 21:12:25

在所有存储库中运行 hg bundle --all,将捆绑包填充到某处(例如 U 盘),在新机器上hg unbundle 它们。

run hg bundle --all in all your repositories, stuff the bundles somewhere (like a usb stick), hg unbundle them on the new machine.

来日方长 2024-08-21 21:12:25

是的,除非您将它们全部放在一个存储库中。否则,您需要向他们支付更多私人回购协议的费用。

Yes, unless you put them all under a single repository. Otherwise, you need to pay them for more private repos.

雨的味道风的声音 2024-08-21 21:12:25

这一定已经改变了——你现在可以拥有无​​限的公共和私人存储库:-)

This must have changed since - you can now have unlimited public and private repos :-)

半边脸i 2024-08-21 21:12:25

作为替代方案,JavaForge 允许托管私有项目

As an alternative, JavaForge allows hosting private projects.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文