对没有开放端口的计算机进行源代码管理

发布于 2024-08-25 13:55:22 字数 118 浏览 5 评论 0原文

我们是一个由 3 个人组成的小组,拥有位于非常封闭的网络内的计算机,并且我们无法访问大量端口。如果有一个我们也可以在家访问代码的解决方案,那将是有益的。

有没有一个源代码管理软件可以在这种情况下很好地工作?

We are a group of 3 people with computers who are inside a network that very closed and we don't have access to a bunch of ports. It would be beneficial to have a solution where we can also access the code from home.

Is there a source control software that works well in a situation like this?

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

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

发布评论

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

评论(5

酷遇一生 2024-09-01 13:55:22

我使用 Mercurial 和 Dropbox 来在家中和工作中访问我的源代码管理。您可以在您使用的计算机上安装软件吗?如果是这样,也许这也适合你。

  1. 安装 Mercurial
  2. 安装 Dropbox
    并每人获得一个帐户。它是免费的
    用于 2 GB 数据并通过端口运行
    80,与网络浏览器相同。
  3. 创建一个
    共享文件夹(来自 Dropbox 网络
    接口)
  4. 将源代码放入
    共享文件夹并将其制作为
    Mercurial 存储库
  5. 了解
    来自 Quick 的 Mercurial
    开始
    并努力工作。

要在家中进行访问,只需在家用计算机上安装 Mercurial 和 Dropbox 并使用同一 Dropbox 帐户登录即可。

任何更改的文件都会自动从一台计算机推送到另一台计算机。我使用 Dropbox 存储库作为主存储库,并在工作时从那里克隆工作副本。一旦我对所做的更改感到满意,我会将它们推送到 Dropbox 存储库。然后,您的朋友可以在需要时将这些更改拉入他们自己的工作副本中。

I'm using Mercurial along with Dropbox to have access to my source control both at home and at work. Are you allowed to install software on the computers you are using? If so, perhaps this would work for you too.

  1. Install Mercurial.
  2. Install Dropbox
    and get an account each. It's free
    for 2 GB of data and runs via port
    80, same as a web browser.
  3. Create a
    shared folder (from the Dropbox web
    interface)
  4. Place your source code in
    the shared folder and make it into a
    Mercurial repository
  5. Get to know
    Mercurial from the Quick
    Start
    and work away.

To get access at home, just install Mercurial and Dropbox on your home computers and log in with the same Dropbox account.

Any changed files will be automatically pushed from one computer to another. I use the Dropbox repository as the main repository, and clone a working copy from there while I work. Once I'm satisfied with my changes, I'll push them to the Dropbox repository. Your friends can then pull those changes into their own working copies when they want to.

岛徒 2024-09-01 13:55:22

SVN 可以通过 http 设置,这在大多数情况下应该可以工作。它甚至应该处理所有端口 80 流量都通过代理传递的情况,该代理要求流量是实际的 http 流量,而不仅仅是恰好配置为使用端口 80 的任何流量。

为了能够在家工作,这假设您的存储库位于受限网络之外。

SVN can be set up over http, which should work in most cases. It should even handle the case that all port 80 traffic is passed through a proxy that requires the traffic to be actual http traffic and not just anything that happens to be configured to use port 80.

To be able to work from home this assumes that your repository is located outside of the restricted network.

明媚如初 2024-09-01 13:55:22

如果您只打开一个端口,您可以将其用作您喜欢的 ssh 隧道,然后自由选择源代码控制系统。可能您需要网络外的一些外部服务器来托管它。

If you only have a single port open, you can use it for an ssh tunnel for whatever you like, and then be free in your choice of a source control system. May be you'll need some external server out of your network to host this.

你的心境我的脸 2024-09-01 13:55:22

SourceGear 的 Vault 比常规 HTTP 运行得更好(尽管多用户版本要花钱)。我已经能够将它放在共享托管服务器上,并让几个人通过他们默认的基于 Web 服务的 API 访问它。

SourceGear's Vault works well over regular HTTP (although it cost money for the multi-user version). I've been able to put it up on a shared hosting server and have several people access it through their default webservice-based API.

流星番茄 2024-09-01 13:55:22

我建议通过 HTTPS 使用 Subversion。鉴于 HTTPS 将对数据包进行加密,几乎所有网络硬件、防火墙等默认情况下都会将端口 443 (HTTPS) 保持开放,因为无法窥视加密数据包内部并阻止不需要的流量。

I'd recommend using Subversion over HTTPS. Given HTTPS will encrypt the data packets, pretty much all networking hardware, firewalls, etc by default leave port 443 (HTTPS) open since there is no way to peek inside encrypted packets and block undesired traffic.

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