如何让AnkhSVN引用现有项目?
我的团队创建了一个项目。该项目已经存在于每个成员的每台PC上。现在,我刚刚使用 AnkhSVN 将这个项目添加到 SVN。所以我想知道我的团队的每个成员如何可以使用这个项目而无需签出或下载这个项目,因为它已经存在。我想使用任何 SVN 客户端来引用它或类似的东西。对我有什么想法吗?
My team created a project. This project has already existed on each PC of each member. Now, I have just added this project to SVN using AnkhSVN. So I want to know how to each memeber of my team can use this project without check out or download this project because it has already existed. I want to using any SVN client to refer to it or something like that. Any idea for me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短回答:他们必须使用 SVN 签出到空文件夹,抱歉。
要求您的团队成员:
长答案:
在签出期间,SVN 在每个文件夹中创建名为“.svn”的文件夹。此“.svn”文件夹包含文件的所谓“基本”版本。每个“基本”版本都是 SVN 内原始文件的副本。
当您进行“干净”签出时(即使用 SVN 客户端将项目从服务器下载到空文件夹中),SVN 会创建文件的“基本”版本(并将它们放入 .svn 文件夹中)和“工作副本” - 您实际使用的文件将修改然后提交。因此,如果您签出 10Mbytes 的项目,SVN 将创建 20Mbytes 的文件,其中一半将存储在“.svn”文件夹中,但它只会从服务器下载10Mbytes。
其他成员已经有他们的项目,但他们没有“.svn”文件夹。这意味着 SVN 客户端仍然需要从 SVN 服务器存储库下载这些文件夹,并且仍然会花费 10Mbytes。
Short answer: they have to use SVN checkout into empty folders, sorry.
Ask your team members to:
Long answer:
During checkout SVN creates folder named ".svn" in each folder. This ".svn" folder contains the so-called "base" versions of your files. Each "base" version is a copy of the original file which is inside SVN.
When you make "clean" checkout (i.e. you download project from server into empty folder using SVN client), SVN creates both "base" versions of files (and puts them into .svn folder) and "working copy" - the ones you actually will modify and then commit. Thus, if you checkout 10Mbytes project, SVN will create 20Mbytes of files, half of which will be stored in ".svn" folder, but it will download only 10Mbytes from server.
Other members already have their projects, but they do not have ".svn" folders. It means, that SVN client still have to download those folders from SVN server repository, and it will still cost those 10Mbytes.