Which file we shouldn't commit on GitHub from Android Studio

I am working on a project using Android Studio, I am also using GitHub

and SourceTree

. The problem is that when I make changes in my project and open SourceTree

then I see some files in the list of non-stationary files, for example:

  • .idea / mics.xml
  • .idea / modules.xml
  • .idea / vcs.xml
  • ProjectName.iml
  • app / app.iml
  • app /build.gradle
  • setting.gradle

I don't know these files should be ignored or committed after code changes. Please suggest.

Here is the file .gitignore

in the application folder.

# 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

      

+3


source to share


1 answer


Check out the links below:

gitignore / JetBrains.gitignore on master github / gitignore GitHub - for Android Studio



gitignore / Android.gitignore on master github / gitignore GitHub - for Android itself

+2


source







All Articles