Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper tools.gitignore Generator
EnglishالعربيةবাংলাDeutschEspañolFrançaisPolskiPortuguêsРусский

.gitignore Generator

dev

Build a .gitignore from 61 templates for languages, frameworks, editors and systems

Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 16 Oct 2026.

A .gitignore file lists the files git should leave untracked, one pattern per line. Pick the templates for your stack, such as Node.js, macOS and VS Code, from 61 official github/gitignore templates; they merge into one file you copy or download, and any path can be tested against the rules before you commit.

Next:
  • License Generator Make a LICENSE file: MIT, Apache 2.0, GPL 3.0 and 20 more, with your name and year

How to make a .gitignore file

1

Tap the templates for your project, such as Node.js, macOS and VS Code, or search for one by name.

2

Add your own lines, such as *.pem or scratch/, in the Your own rules box.

3

Type a few paths under Test paths to see which ones git will ignore and which rule decides.

4

Click Copy, or Download, and save the file as .gitignore in the top folder of the repository.

About .gitignore Generator

Every new repository needs a .gitignore before the first commit, or build output, dependencies and editor settings end up in history. GitHub publishes one template per language, framework, editor and operating system; this page has 61 of them, at a fixed commit, and merges the ones you tap into a single file.

Merging without surprises. Templates overlap: Node.js, Next.js and NestJS all ignore logs. A repeated line is removed only when no ! rule stands between the two copies, so the merged file ignores exactly what the templates ignore one after another. The page says how many lines it removed.

Testing paths. Type paths under Test paths, one per line, with a slash at the end of a folder. Each is marked ignored or kept, with the line number and the rule that decided it. The matching follows git's own rules:

Pattern Matches Does not match
*.log debug.log, logs/app.log log.txt
build/ the folder build at any depth a file named build
/dist dist at the top only src/dist
doc/*.txt doc/a.txt doc/sub/a.txt
**/secrets/** api/secrets/key.pem secrets itself
!keep.log brings keep.log back a file in an ignored folder

A file in an ignored folder stays ignored. Git does not look inside an ignored folder, so !secret/ok.txt after secret/ has no effect. Write secret/* instead, and the ! line works.

Already tracked files. A .gitignore only affects untracked files. If a file was committed before, remove it from the index with git rm --cached and commit; the file stays on your disk.

The path tester was checked against git check-ignore on more than 1,000 paths, across hand-written rule sets and real templates. Everything runs in your browser; nothing you type is sent anywhere.

Frequently asked questions

Where do I put the .gitignore file?

Save it as .gitignore, with the leading dot and no extension, in the top folder of the repository, next to the .git folder. Patterns with a slash at the start or in the middle are read from that folder. A .gitignore in a subfolder also works and applies only below it.

Why is my file still tracked after adding it to .gitignore?

A .gitignore only affects files git is not tracking yet. Once a file has been committed, git keeps following it. Run git rm --cached followed by the path, commit, and from then on the rule applies. The file stays on your disk; only its copy in the index goes.

How do I ignore a folder but keep one file inside it?

Ignore the folder's contents rather than the folder: write logs/* and then !logs/keep.txt. If you write logs/ instead, git skips the whole folder without looking inside, so the ! line can never bring the file back. The Test paths box shows which case you are in.

What does a slash do in a .gitignore pattern?

A slash at the end limits the pattern to folders, so build/ ignores a folder named build but not a file. A slash at the start or in the middle ties the pattern to the folder of the .gitignore, so /dist ignores the top dist only. Without a slash, the pattern matches at any depth.

Are these the same templates GitHub offers?

Yes. The 61 texts come unchanged from the github/gitignore repository at a fixed commit, the collection GitHub uses when you create a repository, published under the CC0 licence. Each block in the result is headed with the template name, so you can see where a rule came from.

Is the gitignore checker case sensitive?

Yes, as git is on Linux and in most CI systems, so Build/ does not match a folder named build. On Windows and macOS, git usually sets core.ignorecase to true and ignores case, so a pattern may match locally but not on the build server. Write patterns in the exact case of the files.

Sources

  • github/gitignore, the template collection (CC0-1.0)The 61 template texts, at commit 0e5d690
  • Git documentation, gitignorePattern format: negation, trailing slash, anchoring with a slash, * ? [] and **, and why a file in an ignored folder cannot be re-included
  • Git documentation, git check-ignoreWhich pattern decides for a path; used as the reference for the path tester

Last verified 16 October 2026.

Rates and rules change; check the source before you rely on a figure.

Still stuck? Ask about .gitignore Generator and anybody who knows can answer. No account needed.

Common uses

  • Gitignore CheckerPaste a .gitignore and paths to see which files git ignores and which line decides
  • Gitignore TemplatesThe official github/gitignore templates for Node, Python, Java, Unity and more, merged

On the related tools: Cron Expression Generator – Generate a cron expression by choosing when the job should run · Sitemap Index Generator – Split a large site into numbered sitemaps with an index file · Google Analytics URL Builder – The five utm parameters GA4 reads, with the naming traps flagged.

Related tools

All developer tools
UUID GeneratorRandom v4 and time-ordered v7 UUIDs, up to 1,000 at once, plus a validatorHash GeneratorMD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, with checksum compareCron Expression BuilderBuild a cron schedule from menus, read it in plain English, see the next runsSlug GeneratorClean URL slugs from titles, including accented and Hindi text, one or hundreds at onceMeta Tag GeneratorWrite title, description, canonical, Open Graph and Twitter tags with a live previewRobots.txt GeneratorBuild a robots.txt with presets, then check what every line really doesSitemap GeneratorTurn a list of URLs into a valid sitemap.xml, with an index when it gets too bigUTM BuilderBuild campaign links with source, medium and campaign, then export the lot as CSV
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
EnglishالعربيةবাংলাDeutschEspañolFrançaisPolskiPortuguêsРусский
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)