I am having problems with data.sqlite and members/model.pyc This is how my .gitignore file looks. If the above-mentioned files show as modified it means git is still tracking them right? These files were not tracked before so I am not sure why it is not ignoring those files....
*.py[cod]
*.sqlite
# C extensions
*.so
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
__pycache__
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
*.log
*.pot
*.pyc
local_settings.py
If the file already exists, you need to force-delete it:
git rm --cached foo.pyc
for every file already tracked. Commit, push, and profit. The file will remain ignored but in the working directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With