gitignore ignore all files of type in root folder code example Example: gitignore all log files *.log !spec/*.log