Generate and/or Update gitignore files using gitignore.io templates
python -m dig_git_ignore ACTION
or
git-ignore ACTION
ACTION
must be one of:
git-ignore create template [template ...]
Create a new .gitignore only with selected templates. It will erease any existing rule.
git-ignore add template [template ...]
Update .gitignore, append selected templates to the existing ones. Only affect the rules inside the generated block.
git-ignore remove template [template ...]
Update .gitignore, remove selected templates from the existing ones. Only affect the rules inside the generated block.
git-ignore update
Update .gitignore with most recent rules. Only affect the rules inside the generated block.
git-ignore list
List templates used in current .gitignore.
git-ignore list-all
List all supported templates.
git-ignore find term
Return supported templates who contains the searched term.
python -m pip install dig-git-ignore
python -m pip install "https://github.com/DIG-/python-git-ignore/releases/download/1.0.2/dig_git_ignore-1.0.2-py3-none-any.whl"
or
python -m pip install "https://github.com/DIG-/python-git-ignore/releases/download/1.0.2/dig_git_ignore.tar.gz"
python -m pip install "git+https://github.com/DIG-/python-git-ignore.git@master#egg=dig_git_ignore"
- You can use and redist freely.
- You can also modify, but only for yourself.
- You can use it as a part of your project, but without modifications in this project.