A better way to create .gitignore
Are you sick of create a .gitignore file for every each project by adding something like these manually,
- .DS_Store
- /node_modules
Wouldn’t it be good if we can tell that we want .gitignore for node, rails or whatever.
After searching, I found some cool project provide stuffs like what I want, called gitignore that help you to create .gitignore with standard rules, simply in 1 command.
Install
Installation is pretty simple, on macOS you just type:
brew install imwithye/formula/git-ignore
Usage
From now on when we start a new node project, we can just type:
git ignore add osx node
It’ll create .gitignore file with ignore rules for macOS and Node.js.
and this is some of what you’re gonna get on your .gitignore,
*.DS_Store
.AppleDouble
.LSOverride# Icon must end with two \r
Icon# Thumbnails
._*...# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release# Dependency directories
node_modules
jspm_packages# Optional npm cache directory
.npm
Simple and Awesome right!
Let’s try and star this one as it deserves on Github repository https://github.com/imwithye/gitignore
Hope you guys enjoy and have more fun to start your new project :)