GitHunt
SA

sauljabin/gitignoregh

gitignoregh is a command line tool that generates .gitignore files based on the open source gitignore templates repository from github

gitignoregh

Python GitHub MIT License GitHub Actions Codecov Python Versions Version Dependencies Platform

gitignoregh is a command line tool that generates a .gitignore file for a project from the github gitignore templates repository.

Screenshots

Installation

Install with pip:

pipx install gitignoregh

Upgrade with pip:

pipx upgrade gitignoregh

Usage

Alias: gigh

Help:

gitignoregh -h

Version:

gitignoregh --version

List all gitignore templates:

gitignoregh -l

Search gitignore templates files:

gitignoregh -s <name>

Print a gitignore:

gitignoregh -p <name>

Reset github template repository:

gitignoregh --reset

Generate .gitignore file (accepts multiple arguments):

gitignoregh <name>

Development

Installing poetry:

pipx install poetry

Installing development dependencies:

poetry install

Running unit tests:

poetry run python -m scripts.tests

Applying code styles:

poetry run python -m scripts.styles

Running code analysis:

poetry run python -m scripts.analyze

Running code coverage:

poetry run python -m scripts.coverage

Running cli using poetry:

poetry run gitignoregh

Release a new version

Check https://python-poetry.org/docs/cli/#version

poetry run python -m scripts.bump --help
poetry run python -m scripts.bump <major|minor|patch>

Languages

Python100.0%

Contributors

MIT License
Created September 19, 2021
Updated November 6, 2025
sauljabin/gitignoregh | GitHunt