D
D
dasdasdsadas2022-03-27 10:44:45
git
dasdasdsadas, 2022-03-27 10:44:45

Why doesn't git ignore the specified files?

My .gitignore:

.gitignore
.vscode/
.idea/
__pycache__
.pytest_cache
env/
venv/
.env
.venv

How it looks like in JetBrains products:
6240159a01fb9636305968.png
Conclusion git status:
624015d08aeca311572341.png
Why do .idea, env folders keep getting indexed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dasdasdsadas, 2022-03-27
@dasdasdsadas

The problem was related to the incorrect encoding of the .gitignore file, namely UTF-16 LE, which caused the rules to be interpreted incorrectly. When changing to UTF-8, it worked

I
Ilya Hardcore, 2022-03-27
@sf-002

The slash at the end of the exception should be removed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question