目录结构说明

/build 这个是存放编译后生成的文件,里面的内容可以全部删除.
.idea 是存放Android Studio的源数据文件,相当于Eclipse的project.properties.
.gradle 项目构建工具Gradle
gradle Gradle配置文件
app 应用的主模块目录
local.properties 本地配置文件.

gitignore配置文件示例

# 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

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/.svn