How can I ignore .pyc files in git?
If I put it in .gitignore it doesn't work. I need them to be untracked and not checked for commits.
You have probably added them to the repository before putting *.pyc in .gitignore.
First remove them from the repository.
Ignore .pyc files in git repository