N
N
Nazariy Lugovoy2019-09-18 11:09:58
IntelliJ IDEA
Nazariy Lugovoy, 2019-09-18 11:09:58

How to set up .gitignore (add node_modules to .gitignore)?

I downloaded the project from the gitlab repository. I added the node_modules folder to .gitignore , but when I commit I see the following picture:
5d81e62404c1a402643020.jpeg
The task is to remove the node_modules components from version control

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazariy Lugovoi, 2019-09-19
@Nazariy

1. I cut the node_modules folder locally from the project
2. I commit
3. I paste node_modules back
4. I add node_modules to gitignore
5. I commit, and I see that node_modules is no longer included there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question