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屋!