windows Tortoise SVN 如何存储存储库文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/741652/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 12:17:43  来源:igfitidea点击:

How does Tortoise SVN store repository files?

windowssvnversion-controltortoisesvn

提问by Jon Winstanley

I have been told that the best SVN client for Microsoft Windows is Tortoise SVN.

有人告诉我,Microsoft Windows 的最佳 SVN 客户端是 Tortoise SVN。

However, when I install it, adds only items to my shell, i.e. the right-click options when I click on folders.

但是,当我安装它时,只向我的外壳添加项目,即单击文件夹时的右键单击选项。

When I try to check out a folder, it tries to create a repository inside the folder I am working on.

当我尝试签出一个文件夹时,它会尝试在我正在处理的文件夹中创建一个存储库。

I would prefer my repository to be outside of my work. Is this possible?

我希望我的存储库不在我的工作范围内。这可能吗?

回答by Adrian Grigore

Ollifant's answer is correct, but as you are about to create your first repository, I just wanted to add that file:// is not at all a recommended method of accessing the repository in a production environment. In fact, according to the svn bookit should not really be regarded as an option at all:

Ollifant 的回答是正确的,但是当您即将创建您的第一个存储库时,我只想添加 file:// 根本不是在生产环境中访问存储库的推荐方法。事实上,根据svn book 的说法,它根本不应该被视为一种选择:

Do not be seduced by the simple idea of having all of your users access a repository directly via file:// URLs. Even if the repository is readily available to everyone via a network share, this is a bad idea. It removes any layers of protection between the users and the repository: users can accidentally (or intentionally) corrupt the repository database, it becomes hard to take the repository offline for inspection or upgrade, and it can lead to a mess of file permission problems (see the section called “Supporting Multiple Repository Access Methods”). Note that this is also one of the reasons we warn against accessing repositories via svn+ssh:// URLs—from a security standpoint, it's effectively the same as local users accessing via file://, and it can entail all the same problems if the administrator isn't careful.

不要被让所有用户直接通过 file:// URL 访问存储库的简单想法所诱惑。即使每个人都可以通过网络共享轻松访问存储库,这也是一个坏主意。它消除了用户和存储库之间的任何保护层:用户可能会意外(或故意)损坏存储库数据库,使存储库脱机进行检查或升级变得困难,并且可能导致混乱的文件权限问题(请参阅“支持多种存储库访问方法”一节)。请注意,这也是我们警告不要通过 svn+ssh:// URL 访问存储库的原因之一——从安全角度来看,它实际上与本地用户通过 file:// 访问相同,

svnserve is almost always better then file:// access and it really is almost no additional effort to set up.

svnserve 几乎总是比 file:// 访问更好,而且几乎不需要额外的设置。

回答by ollifant

Creating a repository and using it are two different things.

创建和使用存储库是两件不同的事情。

The "Create repository here" action creates a repository which you can access locally via file://.. syntax or via the svnserve daemon.

“在此处创建存储库”操作会创建一个存储库,您可以通过 file://.. 语法或通过 svnserve 守护程序在本地访问该存储库。

The "Checkout" action can be done in any other place. You can either use a local repository, access a repository via http(s) or svnserve.

“结帐”操作可以在任何其他地方完成。您可以使用本地存储库,也可以通过 http(s) 或 svnserve 访问存储库。

回答by Mark Allen

If you're trying to run an SVN server of your own that you can then check files into, try VisualSVN. I use it with Tortoise and AnkSVN (all free) and it works great.

如果您尝试运行自己的 SVN 服务器,然后可以将文件签入其中,请尝试VisualSVN。我将它与 Tortoise 和 AnkSVN(全部免费)一起使用,效果很好。