Android Studio 工程的 .gitignore
2016-05-14 16:22
375 查看
新建一个 Android Studio 工程时会默认建立两个 .gitignore 文件
.gitignore
app/.gitignore
但这还不够。顶层 .gitignore 改成如下才干净。从 stackoverflow 找到的,备份于此:
.gitignore
*.iml .gradle /local.properties /.idea/workspace.xml /.idea/libraries .DS_Store /build /captures
app/.gitignore
/build
但这还不够。顶层 .gitignore 改成如下才干净。从 stackoverflow 找到的,备份于此:
# apply from stackoverflow by sam
#
# http://stackoverflow.com/questions/16736856/what-should-be-in-my-gitignore-for-an-android-studio-project #
*.iml .gradle /local.properties /.idea/workspace.xml /.idea/libraries .DS_Store /build /captures
.DS_Store
#built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Windows thumbnail db
Thumbs.db
# OSX files
.DS_Store
# Eclipse project files
.classpath
.project
# Android Studio
*.iml
.idea
#.idea/workspace.xml - remove # and delete .idea if it better suit your needs.
.gradle
build/
#NDK
obj/
*.swp
*~
相关文章推荐
- Android之Intent 序列化反序列化
- Android之用SingleTask和TaskAffinity解决手机截取的项目启动页面问题
- 大量 Material Design 学习资源
- android中关于位移动画TranslateAnimation开始和结束时闪动问题的记录
- android-----带你一步一步优化ListView(一)
- Android中的Rect类——奇葩的思维
- android:width与android:layout_width的区别
- 第一章:Android概论解析
- Android Studio安装
- Android AutoLayout自适应的适配方式
- Android数据存储方式
- AndroidStudio设置SVN版本控制工具
- 收集android上开源的酷炫的交互动画和视觉效果:Interactive-animation
- Android 自定义SnakeBar
- 【转】Google推荐的命名规则——Android图片资源
- Android 一键生成Parcelable
- Ubuntu 12.10编译Android 4.0.3的常见错误
- Android 自定义checkbox样式
- 安卓绘制圆形图片
- android中加载本地图片到内存