【发布时间】:2015-09-16 11:51:19
【问题描述】:
我正在 android studio 中进行 android 开发,我试图忽略所有 /build/ 文件,但它不起作用。这是我当前的 .gitignore 文件
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# built native files
*.o
*.so
# generated files
bin/
gen/
# Ignore gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Eclipse Metadata
.metadata/
# Mac OS X clutter
*.DS_Store
# Windows clutter
Thumbs.db
# Intellij IDEA (see https://intellij-support.jetbrains.com/entries/23393067)
.idea/workspace.xml
.idea/tasks.xml
.idea/datasources.xml
.idea/dataSources.ids
.*
!/.gitignore
但是当我执行 git status 时,仍然会出现构建文件
【问题讨论】:
-
您需要在项目中的每个模块中添加一个.gitignore文件