Just put an Android project under git (beanstalk) version control via the command line (mac terminal). Next step is to set up exclusions.
To those of you who have already been down this path:
What should a typical .gitignore file look like for an android project?
Project set up in Eclipse
Here is the one I use in my Android projects, it supports both ADT and Android Studio, so it is good if you are working with a team.
Simply github can generate
.gitignore
for Android projects repositoriesAnd its content will be like the following
In Addition, if you use IDEA's IntelliJ, and you build Artifacts (and you should), then you might want to add:
(that's where Artifacts are built by default).
And if you don't want to share your IntelliJ project stuff ignore
In my project root I have a file .gitignore. It contains:
You can mix Android.gitignore:
with Eclipse.gitignore:
In addition to what the others have suggested, I'd like to add the
proguard
folder, in case you are using it. You can either ignore the whole folder or justdump.txt
,seeds.txt
andusage.txt
. Basically, it's a good idea to keepmapping.txt
versioned, so that you can debug obfuscated stack traces from your users. More details here.