在最新的ADT中使用egit插件进行I / m。虽然我在github中设置了正确的.ignore文件,并在egit菜单中设置了ignore,但是我想要的目录仍然提交给github.Is那里......我的项目配置错了吗?
github / Myproject中的.gitignore:
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project files
.classpath
.project
# Proguard folder generated by Eclipse
proguard/
# Intellij project files
*.iml
*.ipr
*.iws
.idea/
.gitignore in local / Myproject / 3.9 /:
/gen
/bin
答案 0 :(得分:1)
删除它们?我应该直接在github上删除它们吗?
您应该在本地克隆上删除它们:
git rm --cached -r aFolderToIgnore
然后你可以提交并推送:
.gitignore
将受到尊重