Android Studio 工程.GitIgnore應該忽略的檔案
阿新 • • 發佈:2019-01-28
# 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.
附錄