.gitignore Generator

Create a .gitignore file for Node, Python, PHP, Laravel, WordPress, Java, .NET, Go, Rust, editors and operating systems.

Runs instantly in your browser — results update as you type.

What should I put in a .gitignore file?

A .gitignore lists files Git should not track: dependencies (node_modules, vendor), build output, logs, local environment files with secrets (.env), editor settings and operating-system junk like .DS_Store. Tick your stack and the generator combines the right patterns.

Important

  • Never commit .env files with passwords or API keys — they are ignored in every template here.
  • .gitignore does not affect files already committed: run git rm -r --cached <path> first.

Frequently asked questions

Where do I put .gitignore?

In the root folder of the repository.

Can I combine templates?

Yes, tick as many as you need.

Is it free?

Yes.