O
O
Oleg2016-12-07 17:44:15
git
Oleg, 2016-12-07 17:44:15

How to ignore a folder in the root of a project in gitignore?

There is a dist folder at the root of the project. There are also other dist folders that are downloaded as part of the bower packages. They are somewhere else in the project.
I write the line in gitignore:
dist/
As a result, all dist folders inside the project are ignored in general. And you only need the one that lies next to this gitignore file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toxa82, 2017-07-16
@toxa82

Try specifying the path as /dist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question