Are you tired of managing your git ignore files? You probably work in this way
mkdir myproject && cd myproject
cat /path-to-ignore-template >> .gitignore
git init
Or even worse, you edit your git ignore file every time. You may use git init --template
a lot. But here is a more pretty solution! Try git ignore
!
Git-ignore is a git plugin which allows you manage your git ignore files. Add ignore file to current project by using
git ignore add python c java c++ objective-c
Ignore files relate to Python C and Java will be added into .gitignore
file. Git-ignore use GitHub gitignore template as submodule. There are lots of language ignore files in this repository. You don't have to create your own template. Just start using it!
##Install
Simply download the binary file from release, rename it to git-ignore
and add it to your system path. You are ready to go.
macOS user can install git-ignore
via Homebrew
brew install imwithye/formula/git-ignore
##Uninstall
Simply delete the binary from your system.
##Usage
Try git ignore -h
. It will out put some useful information.
###Add ignore
git ignore add python java c
This command will add multi git gitignore templates to .gitignore
.
###See which file will be added
git ignore which python java
###See what will be added
git ignore show python java
Version | Tag | Published |
---|---|---|
v1.0.4-0.20211109154042-781f83c66a4a | 6mos ago | |
v1.0.4-0.20180209164751-a3fa52dedf3a | 1yr ago | |
v1.0.2 | 2yrs ago | |
v1.0.0 | 2yrs ago |