What it does
A .gitignore file tells Git which files to leave out of your repository: downloaded packages, build output, editor settings, operating-system clutter and secrets. This page lets you tick what your project uses and writes the file for you, grouped under headings, with any pattern that appears twice listed only once.
It runs in your browser and sends nothing anywhere. If you also publish a website, the robots txt makes the matching robots.txt, and slug maker cleans titles into tidy file names.
How to use it
- Tick every language, framework, editor and operating system you or your team use. A team on mixed machines should tick all of theirs.
- Add your own rules in the box, one per line.
- Copy the result or download it, and save it as
.gitignorein the top folder of the project, next to the.gitfolder.
What each setting does
- Languages and frameworks: the build folders, caches and package folders each one creates.
- Secrets and .env files: keeps
.envand key files out, but keeps.env.exampleso others can see the names. - Editors and operating systems: personal files such as
.idea/,.DS_StoreandThumbs.dbthat should not be shared. - Your own rules: added at the end; a rule already in the list is not repeated.
- Heading comments: a
# Nameline above each group, which you can turn off for a shorter file.
Worked example
Ticking Node.js, macOS, Visual Studio Code and Secrets gives 7 + 6 + 4 + 6 = 23 rules. Ticking Python and Java as well adds both lists, but build/ is in both and appears once. A rule such as node_modules/ that you type yourself is dropped because the Node list already has it.
FAQs
I added a file to .gitignore but Git still tracks it. Ignoring only affects untracked files. Run git rm --cached <file> once, then commit.
Is a secret safe once ignored? Only if it was never committed. If a key was committed, treat it as exposed and replace it.
Why a slash at the end? build/ matches only folders called build; without the slash it would match a file of that name too.
Where the numbers come from
- Git documentation, gitignore pattern format (git-scm.com/docs/gitignore): a trailing slash matches folders, ! re-includes a path, * and ** are wildcards.
- The lists of patterns are fibub's own short selection of what each tool usually writes into the project folder. Check your tool's own documentation if you use unusual settings.
Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.
Last updated 2026-12-05.