This is my .gitignore file, which is based on a .gitignore file from Daniel Kottke:
# Compiled source # ################### *.com *.class *.dll *.exe *.o *.so # Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip # Latex # ###################### *.out *.aux *.bbl *.pdf *.blg *.bib.bak auxiliary # Logs and databases # ###################### *.log *.sql *.sqlite # Logs and databases # ###################### *.backup # OS generated files # ###################### .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes ehthumbs.db Thumbs.db