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

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>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git ignore {{file_pattern}} --global

click the source code to copy install git ignore on any operating system with command-not-found.com