git-ignore (1) Linux Manual Page
git-ignore – Add .gitignore patterns Synopsisgit-ignore [<context>] [<pattern> [<pattern>]…] DescriptionAdds the given _pattern_s to a .gitignore file if it doesn’t already exist. Options<context> -l, –local Sets the context to the .gitignore file in the current working directory. (default) -g, –global Sets the context to the global gitignore file for the current user. <pattern> A space…
