lal*_*ala 7 python git django gitignore python-3.x
我想忽略Django项目的pycache和db.sqlite的变化.我引用它们.gitignore,但git捕获它们的变化.如果你知道它,你能告诉我什么是问题吗?我在句子末尾附上了我的.gitignore.
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
media/
settings.py
.idea/
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# IPython Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# dotenv
.env
# virtualenv
.venv/
venv/
ENV/
# Spyder project settings
.spyderproject
# Rope project settings
.ropeproject
# Database stuff
*.sqlite3
migrations/
db.sqlite3
# Atom config file
.editorconfig
# Other unwanted stuff
.idea
.DS_Store
.DS_STORE
Run Code Online (Sandbox Code Playgroud)
lal*_*ala 10
如下,我已经解决了这个问题.
git rm -r --cached .
git add .
git commit -m
git push ~
Run Code Online (Sandbox Code Playgroud)
谢谢你的公司,我很抱歉我的无知.
| 归档时间: |
|
| 查看次数: |
2993 次 |
| 最近记录: |