如何'svn添加所有未版本的文件到SVN? [英] How do I 'svn add' all unversioned files to SVN?

查看:716
本文介绍了如何'svn添加所有未版本的文件到SVN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个好的方法来自动svn添加所有未版本化的文件在工作副本到我的SVN存储库。



我有一个活动服务器,可以创建一些应该由源控制的文件。我想要一个简短的脚本,我可以运行自动添加这些,而不是通过,并一次添加一个。



我的服务器正在运行 Windows Server 2003 因此Unix解决方案将无法正常工作。

解决方案

svn add --force * --auto-props --parents --depth infinity -q p>

很棒的提示!有一句话:我的 Eclipse 会自动向忽略列表中添加新文件。这可能是一个配置问题,但无论如何:有 - 无忽略选项有助于。



之后,您可以提交:

  svn commit -m'添加一个文件'


I'm looking for a good way to automatically 'svn add' all unversioned files in a working copy to my SVN repository.

I have a live server that can create a few files that should be under source control. I would like to have a short script that I can run to automatically add these, instead of going through and adding them one at a time.

My server is running Windows Server 2003 so a Unix solution won't work.

解决方案

svn add --force * --auto-props --parents --depth infinity -q

Great tip! One remark: my Eclipse adds new files to the ignore list automatically. It may be a matter of configuration, but anyhow: there is the --no-ignore option that helps.

After this, you can commit:

svn commit -m 'Adding a file'

这篇关于如何'svn添加所有未版本的文件到SVN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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