.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
Written by Iain Connor
Related protips
1 Response
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#