SVN 标签:如何不更新/检出它们? [英] SVN tags: How not to update/checkout them?
问题描述
在许多项目中,我查看了完整的存储库,然后拥有标准的目录结构:
In many projects, I check out the complete repository and have then the standard directory structure:
project/
branches/
tags/
trunk/
如果我做一个 svn up 项目
,branches
和 trunk
文件夹都没有问题,但是,当然,tags
文件夹也更新了,并且填充了(大部分)许多标记版本,这些版本对我的工作没有价值,只占用磁盘空间.
If I do an svn up project
, it's all fine with the branches
and trunk
folders, but, of course, the tags
folder is updated, too, and filled with (mostly) lots of tagged versions that are of no value for my work and only occupy disk space.
如何从 svn update
中去除 tags
文件夹?特别是,我如何仅在本地执行此操作,也就是说,无需将其提交回存储库,作为使用 svn:ignore
关键字的解决方案会怎样?
How can I except the tags
folder from an svn update
? Especially, how can I do this locally only, that is, without committing that back to the repository, as a solution with the svn:ignore
keyword would do?
推荐答案
首先以非递归方式(-N 或 --non-recursive)查看项目顶部
First you check out the top of the project in non recursive way (-N or --non-recursive)
svn co https://server/project -N my_project_checkout
现在在这个阶段你只能更新主干:
Now at this stage you can update only the trunk:
svn up my_project_checkout/trunk
这篇关于SVN 标签:如何不更新/检出它们?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!