将所有未版本控制的文件添加到 SVN [英] Add all unversioned files to SVN
本文介绍了将所有未版本控制的文件添加到 SVN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个工作副本,它使用脚本在一夜之间自动提交到 SVN.
I have a working copy that gets automatically committed into SVN overnight using a script.
我使用 SVN 命令行来执行此操作.
I use the SVN command line to do so.
在与 Google 进行了令人沮丧的战斗之后,我一直无法弄清楚如何在提交之前将工作副本中的所有未版本控制的文件自动添加到存储库中.
After a frustrating battle with Google, I have been unable to work out how to automatically add all unversioned files in the working copy to the repository before the commit.
有人知道我会怎么做吗?
Does anyone know how I might go about doing this?
在此致谢,
丹
推荐答案
svn --force --depth infinity add .
不过要小心,因为这也会添加任何 svn:ignore
的文件.
Be careful, though, because this will also add any svn:ignore
'd files.
这篇关于将所有未版本控制的文件添加到 SVN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文