What folders should git ignore in an Android project

I am creating an Android application using Eclipse and git. Every time I do a commit, I see changes in files that I don't shure. I need to track (e.g. some inside the bin folder). What folders can git safely ignore in this project?

+3
source share
1 answer

You can use gitignore.io to create a file .gitignorethat suits you. Using Android, Eclipse, and Java tags, I got the following:

# Created by http://www.gitignore.io

### Android ###
# 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/


### Eclipse ###
*.pydevproject
.metadata
.gradle
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# sbteclipse plugin 
.target

# TeXlipse plugin
.texlipse


### Java ###
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

gitignore.io uses the templates available in the gitignore project on GitHub.

+4
source

All Articles