gitignore.io is great

Put simply, gitignore.io is a tool that is so profoundly helpful that I've forgotten what life was like without it.

Put simply, gitignore.io is a tool that is so profoundly helpful that I've forgotten what life was like without it.

Its purpose is simple: for any project you're working on, it'll generate a valid .gitignore file for you. All you need to do is use the autocomplete box provided to describe the type of project you're working on:

Screenshot of the web interface for gitignore

From there, you'll hit the Create button, which will bring you to a page that displays nothing but the raw text which you'll need to add to your project's .gitignore. If you selected just react, for example this is what you'd see on the next page:

1
# Created by https://www.toptal.com/developers/gitignore/api/react
2
# Edit at https://www.toptal.com/developers/gitignore?templates=react
3
4
### react ###
5
.DS_*
6
*.log
7
logs
8
**/*.backup.*
9
**/*.back.*
10
11
node_modules
12
bower_components
13
14
*.sublime*
15
16
psd
17
thumb
18
sketch
19
20
# End of https://www.toptal.com/developers/gitignore/api/react

That's all there is to it, too! I use it on the vast majority of projects I work on, new and old, and as far as I can tell, it hasn't let me down in any meaningful way.

It's Open Source!

One of the reasons I like this tool so much is that it gets better the more people use it. Is it missing support for a project type that you work with? Go ahead and submit a Pull Request, and it may be integrated into the product one day. Or, if you're not quite comfortable with a full-on PR, you can start the discussion in an issue on the repo. Maybe something isn't working like you'd expect -- and it's worth pitching in your two cents in the discussion on an open issue. All of that is contributing to Open Source -- don't forget!

As I understand it, it was created by @joeblau, and quickly gained momentum with developers. As I write this post, there are 135 contributors on the project.

Gitignore.io is a great example of a successful Open Source tool born out of the desire for an improved developer workflow. It currently appears to be operated by TopTal, a company that helps freelancers find work.

There's a CLI

If you prefer it, there's a CLI which will help you generate gitignore files, powered by this same project. I can't say I've used it, but I know some of you will want to give it a go, so it's worth mentioning

There's other options, too

If you don't find gitignore.io particularly appealing, there's always other ways to cretae your .gitignore file. You can write it by hand, or grab one from another project you work on. GitHub also maintains a repo of popular gitignore files, which seems to be updated quite frequently as well.

Was this helpful?

If you found this useful, I'd love it if you subscribed to my mailing list. Details are below!

***
Mike Bifulco headshot

💌 Tiny Improvements Newsletter

Subscribe and join 🔥 955 other builders

My weekly newsletter for product builders. It's a single, tiny idea to help you build better products.

    Once a week, straight from me to you. 😘 Unsubscribe anytime.


    Get in touch to → Sponsor Tiny Improvements