What is .gitignore
.gitignore is a Git configuration file that specifies which files and directories should be ignored by version control. It uses pattern matching to exclude build artifacts, dependencies, temporary files, sensitive data, and other files that shouldn't be tracked. Each line in the file represents an ignore pattern, supporting wildcards (*), directory separators (/), and negation (!) operators.