gi
Synopsis
Section titled “Synopsis”gi [-h] [-b] [-p] [-s] [-l] [targets...]Description
Section titled “Description”Generates .gitignore content by querying the gitignore.io API. Appends results to the repository’s .gitignore with MD5-based deduplication — patterns already present are not re-appended — or prints to stdout with -s. Supports generic boilerplate and interactive prompt modes.
Arguments
Section titled “Arguments”-h, --help |
Show help message |
-d, --description |
Show the function description |
-l, --list |
List all supported targets from the API |
-b, --boilerplate |
Append boilerplate from $GITIGNORE_BOILERPLATE |
-p, --prompt |
Prompt for patterns to append |
-s, --stdout |
Print API output to stdout instead of .gitignore |
targets |
Comma- or space-separated list of language/tool names |
Exit Status
Section titled “Exit Status”0 |
Patterns appended, or resolved with -s/--stdout or -l/--list |
1 |
Not in a git repository or API fetch failed |
Returns
Section titled “Returns”With -s/--stdout, the fetched .gitignore pattern text, printed to stdout. With -l/--list, the supported target list, printed to stdout.
Example
Section titled “Example”gi python,venvgi -b -pgi -s node > .gitignoreDependencies: curl, md5sum, md5
Classification: self-limiting(grep,cat), network, blocking-prompt