Nat*_*ick 6 git android github
我正在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
Run Code Online (Sandbox Code Playgroud)
但是当我执行git状态时,仍会显示构建文件
Dav*_*sch 15
有可能在将它们添加到文件之前将它们添加到repo中.gitignore
.您应该从repo中删除它们git rm --cached filename.ext
,然后提交(以及.gitignore
文件).