Generate gitignore painlessly with shell command

When using Git as your Version control, when you don’t want some files to be tracked (e.g. runtime data, caches, runtime config), you need to add them to the gitignore file. There’s some list of files needed to be ignored which is common to all projects using a certain CMS/Framework, those are called Boilerplates code. After some time, you’ll find that editing .gitignore config and to remember the last settings you used can be a headache. Luckily there’s some nice people collected those settings for us, just search gitingore in the GitHub. Now you can even use gitignore-boilerplates command line tools to generate one for you.

How to use gitignore-boilerplates

Here is an example on how to bootstrap a WordPress project with gitignore-boilerplates 

So the format is basically gibo [boilerplate boilerplate…]. You add arbitary any number of boilerplates in the command. (I also use SublimeText and Mac, so I added those). You can run gibo -l to see the list of supported items.

More Examples:


Install with HomeBrew on OSX

 Install on Linux


Share your thoughts