piwu4w
Last Updated: March 09, 2017
·
8.283K
· iainconnor
284722 10150325298730575 8003821 n

.gitignore for Android Studio projects

The default .gitignore for Android Studio projects ignores a whole bunch of content that might be useful to maintain in your source control. For example, code styling/formatting settings likely should be shared between your development team.

Through some trial-and-error, I've come up with this list of files that are useful to ignore, leaving the good bits shared between your team members.

# Built application files
/*/build/

# Crashlytics configuations
com_crashlytics_export_strings.xml

# Local configuration file (sdk path, etc)
local.properties

# Gradle generated files
.gradle/

# Signing files
.signing/

# User-specific configurations
.idea/libraries/
.idea/workspace.xml
.idea/tasks.xml
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
*.iml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Say Thanks
Respond

1 Response
Add your response

13983
Ben 300 square

For lazy people (like us :D)

Github has an Repository full of gitignore files for different projects/languages/frameworks/whatever. https://github.com/github/gitignore

over 1 year ago ·