Which files to check into git

Which files do you check into git or other revision control systems in
Rails? In general one don’t want to check in generated files.