.gitignore is a plain-text file. It allows you to specify files and folders
that you’d like to exclude from your
.gitignore should be placed in the
root directory of your
You can add files to
.gitignore by adding their names to it.
Here, I’ve excluded the file
local.env from being added to the next
To add more entries to
.gitignore, use new lines.
If you specify the directory (folder) name, all it’s files and subdirectories will be excluded.
local.env reminder.txt node_modules public
To exclude a file that’s located in the internal directory, you should specify its path
relative to the location of
local.env reminder.txt node_modules public src/routes/localHelper.js