Adds an entry to the project's .gitignore file. Will create a .gitignore file if it doesn't exist. Will insert the pattern under the heading and create the heading if it doesn't exist.
pattern
heading
the pattern to add to the .gitignore file
Optional
optional heading to place the pattern under
place an ignore entry at the bottom of the file
import { project } from 'ember-apply';await project.gitIgnore('node_modules'); Copy
import { project } from 'ember-apply';await project.gitIgnore('node_modules');
place an ignore under a heading in the .gitignore file
import { project } from 'ember-apply';await project.gitIgnore('dist', '# build output'); Copy
import { project } from 'ember-apply';await project.gitIgnore('dist', '# build output');
Adds an entry to the project's .gitignore file. Will create a .gitignore file if it doesn't exist. Will insert the
pattern
under theheading
and create theheading
if it doesn't exist.