SVN:递归添加 [英] SVN: Recursive add

查看:38
本文介绍了SVN:递归添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从我的工作副本新鲜地在 SVN 文件夹中添加新的项目文件.它询问递归"选项,并显示您确定要添加 * 多个项目吗?".有人可以指导我启用此递归"选项的用途是什么?我是否应该在刚添加新项目文件时启用它?

I am trying add new project files in a SVN folder from my working copy freshly. Its asking an option "Recursive" with a message "Are you sure you want to add * many items?" . Could someone guide me what is the use of this "Recursive" option to enable? Should i have enable it when i'm freshly adding new project files or not?

谢谢.

推荐答案

简短版本:svn add * --force 就是你所需要的

Short version: svn add * --force is all you need

长版:根据 svn add 手册页

通常,命令 svn add * 将跳过任何已经在版本控制之下的目录.但是,有时您可能希望在工作副本中添加每个未版本控制的对象,包括那些隐藏得更深的对象.传递 --force 选项使 svn add recurse 进入版本化目录:

Normally, the command svn add * will skip over any directories that are already under version control. Sometimes, however, you may want to add every unversioned object in your working copy, including those hiding deeper down. Passing the --force option makes svn add recurse into versioned directories:

$ svn add * --force
A         foo.c
A         somedir/bar.c
A         otherdir/docs/baz.doc

这篇关于SVN:递归添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆