I am doing my initial commit for a new android project. I am happy with the state of the code but was wondering about which files to add + commit and which files should I leave out.
Here is my .gitignore contents:
# 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/
Here is my current git status:
.gitignore
.gradle/
app/
build.gradle
build/
gradle/
gradlew
gradlew.bat
import-summary.txt
settings.gradle
You don't need to keep the . gradle folder. Because once you execute gradle build command again, you can make almost the same . gradle folder again.
I commit everything except the local stuff, this is my .gitignore:
*.iml
.gradle
/local.properties
/.idea
.DS_Store
/build
/captures
Dependency/*
/app/.idea/*
/app/.svn/*
/app/local.properties
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With