Итак, немного подумав, я написал следующее:
# In repository we don't need to have:
# Compiled object files
*.o
# Generated MOC, resource and UI files
moc_*.cpp
qrc_*.cpp
ui_*.h
# Debug and Release directories (created under Windows, not Linux)
Debug/
Release/
# .log files (usually created by QtTest - thanks to VestniK)
*.log
# Built windows .exe and linux binaries
# NOTE: PROJECT is a your project's name, analog of PROJECT.exe in Linux
*.exe
*.dll
PROJECT
# Windows-specific files
Thumbs.db
desktop.ini
# Mac-specific things (thanks to Michael Aaron Safyan)
.DS_Store
# Editors temporary files
*~
Пожалуйста, спросите, что нужно добавить или исправить (особенно для Windows - у меня сейчас нет ни одной под рукой. И у Mac тоже [вообще не работает)).
Я хочу, чтобы мой репозиторий был чистым: -)
UPD: я должен включить в него Makefile
и Makefile.*
? *.pro.user