Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (19.9k points)

This is my .gitignore:

*__pycache__*

*.pyc

db.sqlite3

*.DS_Store

media/

res/

I can see on my Atom that __pycache__ directories are VcsIgnored (which implies that are recognized as not version controlled by git)

1 Answer

0 votes
by (25.1k points)

.gitignore file will tell git that new files in this directory should not be tracked. For your purposes you need to run the following command:

git rm --cached */__pycache__/*

Browse Categories

...