如何在Git中忽略此Eclipse文件? [英] How do I ignore this Eclipse file in Git?

查看:283
本文介绍了如何在Git中忽略此Eclipse文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将其添加到全局 .gitignore 中,但是当我执行git status时,它仍显示为未跟踪的文件.

I tried adding it to my global .gitignore but it is still showing up as an untracked file when I do git status.

researchProject/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator (4).launch

我禁用了JavaScript验证器,因为它不断给出我的构建错误-我发现的唯一解决方案是禁用它.

I disabled the JavaScript validator because it kept giving my build errors -- the only solution I found was to disable it.

推荐答案

将以下几行添加到您的.gitignore文件中:

add the following lines to your .gitignore file:

.project
.settings
.classpath
.metadata

还有您的情况

.externalToolBuilders

你应该很好.

如果要处理特定于蚀的项目,请不要在.gitignore中添加.project.classpath.

Do not add .project and .classpath to .gitignore if you are working on an eclipse-specific project.

这篇关于如何在Git中忽略此Eclipse文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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