过去几个月以来,我一直在做一个项目。现在我有更多的人在同一项目中为不同的模块工作。为此,我想有一个中心(共享)的副本,所有人可以通过局域网连接访问(我们没有任何服务器)。
我浏览了各种链接,但都不能完全理解它们。我下载了tortoisesvn并安装在我的PC上。
下面是我的问题:
1) How to create a repository (folder) on my machine where I can put all my code to share with others?
2) Once a repository (folder) is created, How can I add my source-code to this directory?
(I'm a bit confused about creating directory in Repo-browser, checkout, etc. Which one to use to add my source-code to the repository?
Should I just copy my source-code in repository folder, right click on all of them and do 'add'? Or some other steps are required?)
3) Once source-code is added in repository, how to share it with other users on LAN?
4) Is there any other directory required to be created to checkout the code from repo?回答时请考虑以下详细信息:
我的eclipse-workspace中有我的源代码。E:\eclipse\worspace\MyFirstProject。
我想在一个文件夹E:\svn_repo\中创建svn仓库。我将来的所有项目都将被添加到这个存储库中,以便其他人可以访问它来进行工作。比方说,E:\svn_repo\MyFirstProject将是上述项目的repo目录。
如果需要新的签出文件夹,我想在上面的项目中创建:E:\svn_checkout\MyFirstProject。
有没有人能为我提供上述需求的逐步指导?
我正在开发一个64位的windows-7操作系统。
发布于 2014-06-27 22:02:02
您需要一台服务器或至少其中一台工作站作为服务器。不要试图从许多工作站直接访问svn文件系统。
在要托管中央项目存储库的工作站上安装VisualSvn Server,然后使每个人(包括工作站的所有者)都可以通过http访问存储库。这不仅可以让您将项目存储库移动到服务器上(如果您获得了服务器),而且还将显著更安全-you不会因为两个人同时尝试写入相同的文件而损坏,或者在写入过程中失去网络连接。对svn repo文件的直接访问仅用于读取修订版本时的服务器。
TortoiseSVN是一个客户端工具(类似于AnkhSVN或VisualSVN的visual studio插件)。你会喜欢Windows,因为它非常容易使用,并且与VisualSVN很好地集成在一起。
https://stackoverflow.com/questions/22497960
复制相似问题