【发布时间】:2015-01-15 15:44:34
【问题描述】:
我的目录结构如下:
components
|_ticker
|_sass-utils
|_ ..
|_ticker.css
|_ticker.sass
|_ ..
有几个文件我不想在 SVN 版本控制下。 components 已提交,但 ticker 尚未提交,svn status 当前状态:
? components/ticker
如果我 cd 进入 ticker 目录然后尝试:svn propedit svn:ignore .(这是我从这个 SO solution 尝试的)我得到错误:
svn: E200005: 'components/ticker' is not under version control
我相信一旦我svn add components/ticker,ticker 下的文件就不能再被忽略了。
那么如何忽略尚未受版本控制的文件?
【问题讨论】:
-
我按照该答案的建议执行
svn propedit svn:ignore .,但如前所述,我收到not under version control错误。所以我的设置有些不同。 -
那是因为你需要在父目录上设置“svn:ignore”属性,并将其设置为与你要忽略的目录匹配的值。
标签: svn version-control