Android Studio 工程.GitIgnore应该忽略的文件

# Built application files
*.apk
*.ap_

# Files for the Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# 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

  

如果 .Gradle文件还有内容提交到仓库,需要执行以下代码,或者直接把需要忽略的文件写死进行忽略。

 

If the .gradle files are already in the git repository you need to clean them up first using git rm -rf gradle/. Don't forget to commit your changes after using git rm.

  

posted @ 2015-07-09 15:20  狂奔的小狮子  阅读(5967)  评论(0编辑  收藏  举报