Tell Git to ignore files

use_git_ignore(ignores, directory = ".")

Arguments

ignores

Character vector of ignores, specified as file globs.

directory

Directory relative to active project to set ignores

See also

Other git helpers: use_git_config(), use_git_hook(), use_git()