The Gitignore Generator helps you create comprehensive .gitignore files for your projects. Instead of manually researching which files to ignore for each language or framework, simply select your tech stack and generate a production-ready .gitignore file.
Ignores compiled bytecode (*.pyc, __pycache__), virtual environments (venv/, env/), distribution files (dist/, *.egg-info), test coverage reports, and IDE-specific files.
Key patterns: __pycache__/, *.py[cod], venv/, .pytest_cache/, .env
Ignores node_modules, package locks, build directories, coverage reports, environment variables, and logs.
Key patterns: node_modules/, *.log, /build, .env, package-lock.json
Ignores compiled class files, JAR/WAR packages, Maven/Gradle build directories, and IDE project files (IntelliJ, Eclipse).
Key patterns: *.class, target/, .gradle/, *.jar, .idea/
Ignores compiled binaries, test files, coverage output, vendor directory, and workspace files.
Key patterns: *.exe, *.test, *.out, vendor/, go.work
Ignores the target directory (contains all build artifacts) and Cargo.lock for libraries.
Key patterns: /target/, Cargo.lock, **/*.rs.bk
Ignores object files, compiled libraries and executables, build directories, CMake files, and IDE settings.
Key patterns: *.o, *.exe, *.so, build/, CMakeCache.txt
Ignores Composer dependencies, Laravel-specific directories, WordPress config, and environment files.
Key patterns: /vendor/, .env, /storage/, wp-config.php
Ignores Xcode project files, build products, Swift Package Manager artifacts, and CocoaPods dependencies.
Key patterns: *.xcodeproj/*, xcuserdata/, DerivedData/, Pods/
.gitignore in your project root* or /*git rm -r --cached .
git add .
git commit -m "Apply .gitignore rules"
*.log - Ignore all files ending in .logtemp/ - Ignore the temp directory and all its contents/build - Ignore build directory only in the root**/node_modules - Ignore node_modules anywhere in the tree!important.log - Exception: do NOT ignore this file (negation)*.log.[0-9] - Ignore files like error.log.1, access.log.2