2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00
2025-03-09 23:18:02 +00:00

Gignore - Generate .gitinore files

Install

With Task:

task install

Usage

Usage of gignore:
  gignore [flags] <template>

Flags:
  -dir string
        directory containing .gitignore templates (default "gitignoreio")
  -list
        list available templates
  -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 rebuild 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

gigo For writing the Go client library for gitignore.io

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