Not that I put a lot of effort into it, but I used:
*.o *.a *.bar .preview* .moc .obj <projectname> arm/Makefile arm/Makefile.Debug arm/Makefile.Release x86/Makefile x86/Makefile.Debug x86/Makefile.Release
Where is the name of the project. The IDE creates a file with a name that you do not need in the repo.
source share