gitignore-create
gitignore-create writes .gitignore files from the command line. It gets the
templates from the Toptal gitignore API.
Install
uv tool install gitignore-create
# or
pipx install gitignore-create
Python 3.10 or later is necessary.
Usage
# Interactive selection
gitignore-create
# Write ./.gitignore for one or more templates
gitignore-create -n python linux
# Write to a different directory
gitignore-create -n python -p path/to/project
# Add to an existing .gitignore
gitignore-create -n node --append
# Replace an existing .gitignore
gitignore-create -n node --force
# Add custom lines after the templates
gitignore-create -n python -e "secrets.toml"
# Print the result and write nothing
gitignore-create -n python --preview
# List or search the available templates
gitignore-create --list
gitignore-create --search rust
If .gitignore exists, the command stops unless you pass --append or
--force.
Interactive mode
gitignore-create with no template names opens a picker with vim keys:
| Key | Action |
|---|---|
j / k, g / G, Ctrl+d / Ctrl+u |
Move in the focused pane |
/ |
Search (Enter or Esc returns to the list) |
Space |
Select or deselect the template |
l or Enter |
Preview the template (h returns to the list) |
w |
Write the selected templates and exit |
q |
Quit |
The picker writes to the -p directory and appends if .gitignore exists.
Development
uv sync --group dev
uv run pytest
Metadata
Release files for gitignore-create 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gitignore_create-0.2.0.tar.gz | 42.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitignore_create-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 61.7 kB
Release files / gitignore_create-0.2.0.tar.gz
| Download URL | gitignore_create-0.2.0.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d792e3e90d22b58a79c5b5d0d730da613b8c27a4d0aad5a191edd9d3ca51092d
|
|
BLAKE2b-256 checksum How to use checksums |
42dac65c38d0b0dea91a779edf77721dcac2ea74dcca8fc56e958326f629c172
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / gitignore_create-0.2.0-py3-none-any.whl
| Download URL | gitignore_create-0.2.0-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ee453e5b22c8e9eb592b4ef7d8006c03e82fd804b07c7928cd06f8da95c77ad
|
|
BLAKE2b-256 checksum How to use checksums |
c90ffce416e64c29dd79e77dda3de06a139cf7f6d970009befe88d2024fe9dcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency log