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
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.
© 2024 OneMinuteCode. All rights reserved.