Reputation: 13199
I want to versionate an Android project with git but I am wondering what is mandatory to add to git repository.
I know about .gitignore
file and I also have read this question: What should be in my .gitignore for an Android Studio project? but I have seen that there are a lot of different opinions about what should I add or remove from .gitignore
file.
My question is not so open, I just want to know what is mandatory add to git repository, I mean that if I create a new project, versionate it and clone that repo in another computer, the project will work without problems.
Just the needed files I need to make my Android git project works in other computer when I clone my git repository. I am using Android Studio.
So, what files are mandatory to versionate on Android git project?
Upvotes: 0
Views: 46
Reputation: 10127
There is a great github project that includes gitignore files for every kind of project.
There is one for Android. https://github.com/github/gitignore/blob/master/Android.gitignore
I always use this for my projects.
Upvotes: 1