如何将所有未版本控制的文件“svn add"到 SVN? [英] How do I 'svn add' all unversioned files to SVN?

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

问题描述

我正在寻找一种将工作副本中的所有未版本控制文件自动svn add"到我的 SVN 存储库的好方法.

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.

我的服务器正在运行 Windows Server 2003,因此 Unix 解决方案将不起作用.>

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

推荐答案

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

很棒的提示!备注:我的 Eclipse 会自动将新文件添加到忽略列表中.这可能是配置问题,但无论如何:--no-ignore 选项有帮助.

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 add"到 SVN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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