Gitignore Generator
← SkillSafe

Make a .gitignore for your project

Type your stack or choose your project folder. You get a .gitignore that also keeps .env files and keys out of git.

Reads file names only.
No project handy? Try one:

How it works

  1. Say what the project is. Type names such as node, python, macos, vscode, or choose your project folder and the page spots package.json, go.mod, .idea and the rest. Frameworks bring their language along: Next.js adds Node.js, Rails adds Ruby.
  2. Get the file. Each template comes from github/gitignore, the set GitHub offers when you create a repository. A secrets block goes last so it wins: .env and .env.* stay out, .env.example stays in, and so do keys, certificates and credentials files.
  3. Check it on your files. Paste git ls-files or choose your folder. The page matches every name with git's own rules, including **, ! and folders that cannot be re-included, and lists what git will skip, which secrets would still be committed and which important files the rules hide.
  4. Save it as .gitignore in the top folder of your repository and commit it. If files that should be ignored are already committed, run the git rm --cached lines the page gives you.

Questions

Is my project folder uploaded?
No. When you choose a folder, the browser hands the page the file names only, and everything runs inside the tab. Only the optional AI step sends file names, and only when you press its button. File contents are never read or sent.
I added a file to .gitignore but git still tracks it. Why?
A .gitignore only affects files git is not tracking yet. For a file that is already committed, run git rm --cached on it (git rm -r --cached for a folder), then commit. Tick the already-committed box under Check your files and the page writes those commands for you.
Where do the templates come from?
From github/gitignore, the collection GitHub uses when you create a repository, released into the public domain under CC0. The secrets block comes from the env-configurator agent skill.
Should I commit my .env file?
No. Commit a .env.example that lists the variable names with placeholder values, and keep the real .env on each machine. The page makes the .env.example for you from your .env, in your browser.
My browser saved the file as gitignore.txt or _gitignore. What now?
Some browsers will not save a name that starts with a dot. Rename it to .gitignore, or use Copy and paste into a new file.
Does the order of rules matter?
Yes: the last rule that matches a path decides. A ! rule brings a file back, unless a folder above it is ignored, because git never looks inside an ignored folder.