I added it to .gitignore from the source.The pyc file keeps coming out

Asked 2 years ago, Updated 2 years ago, 71 views

In the Django project, I put the following in the .gitignore.

*.egg-info
*.pot
*.py[co]
__pycache__
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/

Continuing on from Source Tree.The pyc file is coming out. Why is that?

git django

2022-09-22 22:04

1 Answers

I think it's because there's a file that's already been added before making .gitignore. I keep monitoring changes for files already registered.

In the shell (terminal or cmd), navigate to the folder Type gitram --cached *.pyc. I erased all files with the extension pyc from the cache, so files with the extension pyc won't come out anymore.


2022-09-22 22:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.