往github上传代码的时候,很多文件没必要都传,这就需要在.gitignore文件里配置一下过滤规则。在此记录一下各种项目的配置参数,先从最近做的android开始。
原文地址请保留http://www.cnblogs.com/rossoneri/p/4021500.html
eclipse:
.metadata/**/*
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/ # Log Files *.log
参考:
https://github.com/github/gitignore/blob/master/Android.gitignore