One of the 100 questions in this topic
The .gitignore file is used to specify files and folders that Git must ignore.