SamIAmHarris
SamIAmHarris

Reputation: 2178

First commit Android Studio Project -- What should leave out?

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

Upvotes: 16

Views: 13726

Answers (1)

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

Upvotes: 4

Related Questions