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.
Written by Ciel
Related protips
1 Response
Nice and useful tip! Thanks!
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#