I\'m working on a django project with a few other developers and we have recently realized that all the .pwc files in our app cause the commits and repository to be cluttere
You can also use the following:
git rm -r '*.pwc'
and then make those files ignored by git:
echo '*.pwc' >> .gitignore
The last one is in case if you already have .gitignore file, if not, us single '>' sign.