如何在两台计算机之间共享 svn 存储库 [英] how to share svn repository between two computers

查看:61
本文介绍了如何在两台计算机之间共享 svn 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的工作站上,我有 SVN 存储库.我在工作站和笔记本电脑上都使用它.在工作站上,我可以在本地访问存储库,但在笔记本电脑上,我必须连接到 Internet 才能访问存储库.这不方便,因为我不能在飞机/火车和其他没有互联网的地方工作(我想比较修订等).

On my workstation I have SVN repository. I use it on both workstation and laptop. On workstation I can access repository locally, but on laptop I have to be internet-connected to access repository. This is not convenient, because I can not work from plane/trains and other internet-less places (i want to compare revisions etc etc.).

在笔记本电脑上拥有 svn 存储库的 COPY 会更舒服,但我需要最新的副本.

It would be much more comfortable to have the COPY of the svn repository on laptop, but I need up to date copy.

最简单的解决方案是将 svn 存储库存储在云中,例如 https://www.dropbox.com因此,只要在一台计算机上更新存储库,它就会在另一台计算机上更新.

The most trivial solution would be to store svn repository in cloud like https://www.dropbox.com so anytime repository is updated on one computer it would be updated on another computer.

但出于安全原因,我不想使用 Dropbox,我不想将机密文件存储在互联网上的某个地方,而且可能未加密.

But I do not want to use dropbox because of security reasons, I don't want to store confidential files somewhere in internet, and likely unencrypted.

我还能做什么?我想自动同步存储库的两个副本,但我不想将其存储在互联网上.可能每次出现互联网时笔记本电脑本身都应该从工作站获取"最新副本,并且每次在笔记本电脑上更新存储库时,它都应该自动向工作站提交新版本?

What else can I do? I want to synchronize two copies of repository automatically, but I do not want to store it in internet. Probably laptop itself every time internet appears should "get" up to date copy from workstation and every time repository is updated on laptop it should commit new revision to workstation automatically?

我知道 SVN 不是为了做这些事情而设计的,但由于我是存储库的唯一提交者,而且我只有工作站和笔记本电脑,我们可以假设冲突永远不会发生......

I understand that SVN is not designed to do such things, but as I am the only commiter to repository and I only have workstation and laptop we can assume that conflict never occurs...

推荐答案

转向分布式版本控制系统,如 git 或 Mercurial.Subversion 旨在在一处拥有一个中央存储库.尝试复制存储库本身意味着数据丢失或不一致的巨大风险.

Move over to a distributed version control system like git or Mercurial. Subversion is made to have one central repository in one place. Trying to replicate the repo itself would mean a great risk of data loss or inconsitencies.

这篇关于如何在两台计算机之间共享 svn 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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