我正在使用Eclipse和git构建一个Android应用程序。每次我提交时,我都会看到文件中的变化我不需要跟踪(例如,bin文件夹中的一些内容)。在这种项目中哪些文件夹可以安全地忽略?
答案 0 :(得分:4)
您可以使用gitignore.io构建适合您的.gitignore
文件。
使用Android,Eclipse和Java标签,我得到了这个:
# 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使用GitHub上gitignore项目提供的模板。