Skip to content
eviweb edited this page Mar 23, 2021 · 2 revisions

Register a local source of ignore patterns

git ignore register <type> <name> <path>

Mandatory parameters

  • <type> : this defines the type of repository, only local or git is allowed for now
  • <name> : a unique identifier for the registration (no space is allowed)
  • <path> : a valid local path

What does it do

During the first use the file ./config/repositories is created in the gitignore-cli root folder.
All records take the following form : <name> <type> <path> (each information is separated with one space)

Important information

  • only one <path> is recorded, if the provided path already exists, the process is aborted
  • only one <name> is recorded, if the provided name already exists, its related information is updated
  • the config file ./config/repositories is not tracked by git
Clone this wiki locally