1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 02:06:15 +02:00
tldr/pages/common/git-ignore.md
Managor 36735f324a
common*: refresh old pages part 8 (#16293)
Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
2025-05-03 05:57:20 +03:00

585 B

git ignore

Show/update .gitignore files. Part of git-extras. See also git ignore-io. More information: https://github.com/tj/git-extras/blob/master/Commands.md#git-ignore.

  • Show the content of all global and local .gitignore files:

git ignore

  • 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]}}