.gitignore Generator
Generate a complete .gitignore file for any language, framework, or IDE. Select one or more technologies and get a comprehensive, ready-to-use gitignore file instantly. Download with one click.
What is a .gitignore File?
A .gitignore file tells Git which files and directories to exclude from version control. This typically includes build artifacts (node_modules/, dist/), environment files (.env), IDE configuration (.idea/), OS files (.DS_Store), and compiled code. A well-configured gitignore keeps repositories clean and prevents accidentally committing sensitive credentials.
Frequently Asked Questions
~/.gitignore_global instead, so they apply to all your repos without affecting teammates.git rm --cached filename. Then commit the removal. The file stays on disk but stops being tracked..gitignore excludes files. .gitkeep is an unofficial convention — an empty file placed in an empty directory to force Git to track it (Git doesn't track empty directories). The name is arbitrary; .gitkeep is just the common choice.