在Android项目中应该忽略哪些文件夹 [英] what folders should git ignore in an Android project

查看:208
本文介绍了在Android项目中应该忽略哪些文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse和git构建一个Android应用程序。每次我做一个提交,我看到文件的变化我不是我需要跟踪(例如,一些在bin文件夹内)。在这类项目中,哪些文件夹可以安全地忽略?

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?

推荐答案

您可以使用 gitignore.io 来构建一个适合您的 .gitignore 文件。
使用Android,Eclipse和Java标签,我得到了这个:

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使用

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

这篇关于在Android项目中应该忽略哪些文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆