```bash
gign rust linux > .gitignore
gign pyton jjetbrainz linus > .gitignore
gign --append haskell
gign --strict macos > .gitignore
gign $(gign list javascript) node > .gitignore
gign $(gign list | fzf) > .gitignore ```
see
gign list
to show all available templates
Using Cargo
cargo install gign
By default, templates are taken from https://github.com/github/gitignore
To add custom template just create [name].gitignore
file inside gign where
directory.
Files inside folders will be prefixed with the parent folder name (except for the root templates).
For example, if you have custom.gitignore
file inside extras/
folder,
you can use it like this:
```bash gign --strict extras:custom
gign extras:custom
gign custom ```
| Location | Strict Name |
|--------------------------------|-----------------|
| custom.gitignore
| custom
|
| extras/custom.gitignore
| extras:custom
|
| extras/misc/custom.gitignore
| misc:custom
|
``` USAGE: gign [OPTIONS] [template]... [SUBCOMMAND]
ARGS:
... The templates to ignore
OPTIONS:
-a, --append Append to the existing .gitignore file
-h, --help Print help information
-s, --strict Do not automatically resolve unknown templates
-V, --version Print version information SUBCOMMANDS:
help Print this message or the help of the given subcommand(s)
list List all available templates
update Update the default templates database
where Print the templates path
```