- Remove
.pyc
files usinggit rm *.pyc
. If this not work usegit rm -f *.pyc
- Commit
git commit -a -m 'all pyc files removed'
- Push
git push
- In future commits you can ignore
.pyc
files by creating a.gitignore
file
.pyc
files using git rm *.pyc
. If this not work use git rm -f *.pyc
git commit -a -m 'all pyc files removed'
git push
.pyc
files by creating a .gitignore
file