Last Updated: February 25, 2016
·
882
· imwithye

Git-Ignore, a way to manage your gitignore files

Github provides a great collection of git ignore templates. But it is only available when you create repository online.

Git-Ignore is a git plugin which provides lots of ignore templates as Github. You can create your git ignore template as well.

The repository is here:
https://github.com/imwithye/git-ignore

You may install it with Homebrew:

brew install https://raw.github.com/imwithye/git-ignore/master/git-ignore.rb

or the auto installer:

curl -sSl https://raw.github.com/imwithye/git-ignore/master/installer.sh | sudo bash

In any git repository, run

git ignore add python c java

and you will add the python, c and java ignore templates to the .gitignore file.

run

git ignore save mytemplate

You can save the current .gitignore file as your own template.

1 Response
Add your response

Nice and useful tip! Thanks!

over 1 year ago ·