onyx-and-iris 6b41418c00
Some checks failed
Auto-Update Go Modules / update-go-modules (push) Has been cancelled
split long desc across lines
2025-03-17 22:52:12 +00:00
2025-03-14 21:49:55 +00:00
2025-03-10 11:19:37 +00:00
2025-03-09 23:18:02 +00:00
2025-03-14 21:58:57 +00:00
2025-03-10 15:21:27 +00:00
2025-03-12 15:15:08 +00:00
2025-03-17 00:05:32 +00:00
2025-03-17 00:05:32 +00:00
2025-03-09 23:18:02 +00:00
2025-03-10 15:21:27 +00:00
2025-03-12 15:48:43 +00:00
2025-03-17 22:52:12 +00:00

Windows Linux macOS

Gignore - Generate .gitinore files

Install

With Go tools:

go generate ./...
go install ./cmd/gignore

With Task:

task install

Usage

Usage of gignore:
  gignore [flags] <template>

Flags:
  -dir string
        directory containing .gitignore templates (default "gitignoreio")
  -l int
        log level (shorthand) (default 3)
  -list
        list available templates
  -loglevel int
        log level (default 3)
  -ls
        list available templates (shorthand)

Example:
  gignore go

Custom Templates

It's possible to add your own custom templates, simply create a directory in internal/registry/templates. You'll need to reinstall the project before you can load the new templates.

Then pass the dir name as a flag, for example:

gignore -dir=custom go

You may set an environment variable GIGNORE_TEMPLATE_DIR to avoid passing the -dir flag each time.

If a template is requested but not found in the custom directory then the gitignoreio registry will act as a fallback.

Special Thanks

gitignore.io For providing such a useful .gitignore service

cuonglm For writing the gogi client library for gitignore.io

Description
Generate .gitinore files
Readme MIT 76 KiB
Languages
Go 100%