[英]Unable ignore the eclipse setting in gitignore
I am using
/*/.settings/*
OR 要么
/*/.settings/
to ignore eclipse setting. 忽略日食设置。
abc.host.client/.settings/org.eclipse.jdt.core.prefs abc.host.client / .settings / org.eclipse.jdt.core.prefs
but unable to ignore the following files.
abc.host.client/.settings/org.eclipse.wst.common.project.facet.core.xml
abc.host.client/.settings/org.eclipse.wst.common.component
I am using git version 1.7.1 . 我正在使用git版本1.7.1 。 May I know what is the problem?Thank You. 我能知道是什么问题吗?谢谢。
Since you have added /*/.settings/*
recently to .gitignore
, you need to clear the cache of .gitignore
. 由于您最近/*/.settings/*
.gitignore
添加/*/.settings/*
,因此需要清除.gitignore
的缓存。
git rm --cache .gitignore
After that commit as usual. 之后,像往常一样提交。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.