I've done this a few times on a live stream and there is always someone unaware of this so I wanted to share.
Assuming you have Node.js installed on your machine, you can run npx gitignore your_language
, e.g. npx gitignore node
, and it will generate a gitignore file for you for the given language.
Here's a clip from my stream today showing it in action. Maybe you'll find it useful in your next project!
Photo by Gabriel Heinzer on Unsplash
Top comments (11)
thank you for sharing
I have more tips like this 👇
One Tip a Week
One developer tip a week. Short & valuable. That's it!
I added the sync subcommand to my self-created liuli-cli to synchronize configuration items
Nice handy tool so that I don't have to curl the Node.gitignore file everytime 🙌
Badass command 😎
(Also cool to integrate Twitch video in your post)
Useful tip, thanks for sharing!
Hol' up. Wait a minute. It was this simple? Sheesh. -_-