gitignore Generator
This tool creates a .gitignore file. Tick the languages, systems, editors and file types you use, and copy the patterns.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use gitignore Generator online
- Tick your stack. Languages, systems and editors.
- Add secrets and logs. Keep those groups on.
- Read the file. The patterns appear grouped.
- Copy it. Save it as .gitignore.
Why use this free gitignore Generator
- Nineteen groups
- Repeats removed
- Secrets covered
- Editor groups
- Group comments
- Share by link
What .gitignore does
A .gitignore file tells Git which files to leave out of version control: build output, downloaded packages, editor settings, logs and secrets. Leaving them out keeps the repository small and clean, and stops private files from being shared by mistake. Put the file in the top folder of your project.
How to use it
Tick the boxes that match your project: a language or framework such as Node.js, Python, PHP, Laravel, Java, Go or Rust, your operating system, and your editor. The tool joins the patterns for each, with a heading comment, and removes repeats. There are also groups for environment and secret files and for logs.
Secrets
The group for environment files lists .env, .env.* and key files, while keeping .env.example. Never commit passwords, tokens or private keys. If one has been committed already, adding it to .gitignore is not enough; remove it from history and change the secret, because anyone with the repository can read it.
Files already tracked
A .gitignore only affects files that Git is not yet tracking. If a file is already tracked, it stays tracked until you run git rm --cached on it and commit. This catches many people out. Also note that a pattern ending in a slash matches folders, and that a line starting with ! makes an exception.
Make it your own
The groups are a good start and not a complete list for every tool. Check them against your build tools, and add your own lines at the end. Some teams commit shared editor settings, which is why the Visual Studio Code group keeps settings.json and a few others. Check the result against your project before you commit it.
Using the tool
Change the text or any option of the gitignore Generator and the answer moves straight away. Use result as input to pass the answer to the next step.
gitignore Generator: frequently asked questions
Where does the .gitignore go?
Why is my file still tracked?
Should I ignore the .env file?
What does a slash at the end mean?
How do I make an exception?
Does the gitignore Generator keep a copy of my text?
Can I save what the gitignore Generator gives me?
Related searches for gitignore Generator
- gitignore Generator online
- free gitignore Generator
- gitignore Generator online free
- gitignore Generator for mobile
- gitignore Generator without sign up
- gitignore Generator – Text & Writing Tools
gitignore Generator is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.