Update '.gitignore' to ignore temporary and Mac-specific files.