Ignore .pyc files in git repository
Put it in .gitignore. But from the gitignore(5) man page: So, either specify the full path to the appropriate *.pyc entry, or put it in a .gitignore file in any of the directories leading from the repository root (inclusive).