Skip to main content

Generate/update gitignore file with templates

Project description

DIG git-ignore

Build Status Build tests PyPI - License PyPI - Python Version PyPI - Version

Windows - Supported Linux - Supported MacOS - Supported

Generate and/or Update gitignore files using gitignore.io templates

Usage

python -m dig_git_ignore ACTION

or

git-ignore ACTION

ACTION must be one of:

create

git-ignore create template [template ...]

Create a new .gitignore only with selected templates. It will erease any existing rule.

add

git-ignore add template [template ...]

Update .gitignore, append selected templates to the existing ones. Only affect the rules inside the generated block.

remove

git-ignore remove template [template ...]

Update .gitignore, remove selected templates from the existing ones. Only affect the rules inside the generated block.

update

git-ignore update

Update .gitignore with most recent rules. Only affect the rules inside the generated block.

list

git-ignore list

List templates used in current .gitignore.

list-all

git-ignore list-all

List all supported templates.

find

git-ignore find term

Return supported templates who contains the searched term.

Installation

From PyPI (preferred):

python -m pip install dig-git-ignore

From github release:

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"

From github main branch:

python -m pip install "git+https://github.com/DIG-/python-git-ignore.git@master#egg=dig_git_ignore"

License

CC BY-ND 4.0

  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dig-git-ignore-1.0.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

dig_git_ignore-1.0.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file dig-git-ignore-1.0.2.tar.gz.

File metadata

  • Download URL: dig-git-ignore-1.0.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for dig-git-ignore-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d6780eda37d690f74dc206e3d65244b9e14fe63da7ef4f4764c0ccf68f524ca0
MD5 6e65f8a6b39638bf700c4041de20afc1
BLAKE2b-256 bf8baf80879493473fadaab17172b20d05a896803985163541264402f2e1ecfd

See more details on using hashes here.

File details

Details for the file dig_git_ignore-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dig_git_ignore-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d95d832cdeeb7fcd327ea80fbed4958e5a22374f10f10f8b810a6c164b770942
MD5 26ac7803489eb18fa5ecf73e8089a622
BLAKE2b-256 ab853fc2d3e7eb79b0f7c21342b9725374bd8c8203ca2f61bf4c1cdf463d415f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page