Get gitignore templates from the github/gitignore repository. It supports listing and downloading available templates using the github API.
- python >= 3
- requests
List all available .gitignore templates:
$ ignore.py list
Get vim, python and c .gitignore templates and print on STDOUT
:
$ ignore.py get vim python c
You can use a shell redirect to write the output in a .gitignore file or use the
--output-files
and --merge
options:
$ ignore.py get -o -m vim python c
If a .gitignore file already exists you will be prompted to overwrite it unless
you use the --force
option. For more information see ignore.py -h
.
See COPYING