React template
Ready-to-use gitignore for React/Next/Vite projects.
Explore resourceProfessional .gitignore tools
Master every method to add files to .gitignore: new files, existing tracked files, folders, and file types. Learn git rm --cached and prevention techniques.
Files that haven't been committed to Git yet. Simple to ignore.
Files already committed to Git. Need to untrack first.
๐ก Tip: Use relative paths from the repository root. For files in subdirectories, use src/config.js or **/config.js.
Note the trailing slash (/) for folders
Without / it might match files too
โ ๏ธ Important: If files are already tracked by Git, simply adding them to .gitignore won't work. You must untrack them first.
Shows which .gitignore rule matches (if any)
Lists all files being ignored by Git
๐ก Pro Tip: Use ourPattern Validator tool to test your .gitignore patterns before committing.
This happens when the file was already tracked before adding to .gitignore.
Use **/pattern to match files at any depth.
Ready-to-use gitignore for React/Next/Vite projects.
Explore resourceHandle virtual environments, notebooks and build outputs.
Explore resourceProtect tfstate and secrets in infrastructure repositories.
Explore resourceCombine multiple stacks and export a single .gitignore tailored to your project.