what folders should git ignore in an Android project

∥☆過路亽.° 提交于 2019-12-19 09:58:14

问题


I am building an Android app using Eclipse and git. Everytime I do a commit I see changes in files I am not shure I need to track (for instance, some inside the bin folder). Which folders can git safely ignore in this kind of project?


回答1:


You can use gitignore.io to build a .gitignore file that suits you. Using the Android, Eclipse and Java tags, i got this:

# 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 at the gitignore project on GitHub.



来源:https://stackoverflow.com/questions/21955941/what-folders-should-git-ignore-in-an-android-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!