L
L
LVitA2018-10-20 11:08:08
git
LVitA, 2018-10-20 11:08:08

Why does git add files that are listed in gitignore?

Specified folders that should not be sent to the repository, but git adds them anyway. What is the problem?

Screen
5bcae25dbd7f7796365127.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
bkosun, 2018-10-20
@bkosun

/venv/*

S
Softer, 2018-10-21
@Softer

If the files were in the index BEFORE they were put into gitignor, you need to delete them from there.
git rm --cached filename

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question