svn (subversion) 忽略所有子目录中的特定文件类型,在 root 上配置? [英] svn (subversion) ignore specific file types in all sub-directories, configured on root?

查看:21
本文介绍了svn (subversion) 忽略所有子目录中的特定文件类型,在 root 上配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下文件夹结构,我希望 svn 忽略所有 eclipse 文件(.classpath.project.settings) 在子项目中

I have the following folder structure, and I would like for svn to ignore all eclipse files (.classpath and .project and .settings) in sub-projects

main-project/
  sub-1/.classpath
  sub-2/.classpath
  sub-3/part1/.classpath
  sub-3/part2/.classpath

有没有什么方法可以将main-project"中的.svn配置为svn:ignore **/**.classpath?

Is there any way of configuring the .svn in the "main-project" to svn:ignore **/**.classpath?

所以我不必在每个子文件夹中编辑它?

So I dont have to edit it in every single sub-folder?

推荐答案

我相信我一直在寻找的答案是:

I believe the answer I was looking for is:

vim ~/.subversion/config

向下滚动到全局忽略":

scroll down to 'global-ignores':

global-ignores = *.classpath

答案来自这里:

如何递归配置svn状态隐藏被忽略的文件?

这篇关于svn (subversion) 忽略所有子目录中的特定文件类型,在 root 上配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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