A typical .gitignore file when you work with Android studio 2.2

What should be add in the gitignore when you work with Android studio 2.2 ?

Really interesting question. We all know when we work with GIT, we should be very careful with the file we commit. It might lead to un-necessary problems. I will add a typical [code].gitignore[/code] file so that you can use it in your future android studio projects.

UseĀ [code] # [/code] to add comments in your file.





# built application files

# files for the dex VM

# Java class files

# built native files (uncomment if you build your own)
# *.o
# *.so

# generated files

# Ignore gradle files

# Local configuration file (sdk path, etc)

# Proguard folder generated by Eclipse

# Eclipse Metadata

# Mac OS X clutter

# Windows clutter
# Log Files

# Android Studio Navigation editor temp files

# Android Studio captures folder
# Keystore files

# Intellij IDEA (see https://intellij-support.jetbrains.com/entries/23393067)

# External native build folder generated in Android Studio 2.2 and later
#important if you are working with c++ project.



I will update the file there is any changes. Let me know if i have missed any important file here. I got this format in theĀ Intellij IDEA website so there might be a missing file.


Thanks guys.


Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.