commands.sh

git ignore

all

Show/update `.gitignore` files. Part of `git-extras`. See also: `git ignore-io`.

More info →

Options (2)

-p, --privateboolean

Ignore file(s) privately, updating `.git/info/exclude` file

Example: git ignore {{file_pattern}} {{[-p|--private]}}
-g, --globalboolean

Ignore file(s) globally, updating global `.gitignore` file

Example: git ignore {{file_pattern}} {{[-g|--global]}}

Examples (4)

Show the content of all global and local `.gitignore` files

Ignore file(s) privately, updating `.git/info/exclude` file

git ignore file_pattern [-p|--private]

Ignore file(s) locally, updating local `.gitignore` file

git ignore file_pattern

Ignore file(s) globally, updating global `.gitignore` file

git ignore file_pattern [-g|--global]
made by @shridhargupta | data from tldr-pages