A
A
ArtJH2020-09-03 07:44:31
git
ArtJH, 2020-09-03 07:44:31

How to add everything except one folder to git?

I'm using gulp, so as I work I have a node_modules folder that stores the libraries I need and don't need.
I want to git the entire assembly except for this folder.
How to do it?
Add everything: git add .
Add everything except: ???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-09-03
@ArtJH

exclude this folder in .gitignore

J
jcmvbkbc, 2020-09-03
@jcmvbkbc

Add everything except: ???

git add .
git rm --cached node_modules

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question