默认的###Python模板#字节编译/优化/DLL文件__pycache__/*.py[cod]*$py.class*.pyc#Cextensions*.so#Distribution/packaging.Pythonbuild/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/share/python-wheels/*.egg-info/.installed.cfg*.eggMANIFEST#PyInstaller#通常这些文件是由python脚本编写的从PyInstaller构建exe之前的模板#,以便将日期/其他信息注入其中。*.manifest*.spec#Installerlogspip-log.txtpip-delete-this-directory.txt#Unittest/coveragereportshtmlcov/。tox/.nox/.coverage.coverage.*.cachenosetests.xmlcoverage.xml*.cover*.py,cover.hypothesis/.pytest_cache/cover/#Translations*.mo*.pot#Djangostuff:*.loglocal_settings.pydb.sqlite3db.sqlite3-journal#Flaskstuff:instance/.webassets-cache#Scrapystuff:.scrapy#Sphinxdocumentationdocs/_build/#PyBuilder.pybuilder/target/#JupyterNotebook.ipynb_checkpoints#IPythonprofile_default/ipython_config.py#pyenv#对于库或包,您可能希望忽略这些文件,因为代码旨在在多个环境中运行;否则,检查它们:#.python-version#pipenv#根据pypa/pipenv#598,建议在版本控制中包含Pipfile.lock。#但是,在协作的情况下,如果有平台特定的依赖或依赖#没有跨平台支持,pipenv可能会安装不起作用的依赖项,或者不安装所有需要的依赖项。#Pipfile.lock#PEP582;被例如使用github.com/David-OConnor/pyflow__pypackages__/#Celerystuffcelerybeat-schedulecelerybeat.pid#SageMath解析文件*.sage.py#Environments*.env.env.venvenv/venv/ENV/env.bak/venv.bak/#Spyderprojectsettings.spyderproject.spyproject#Rope项目settings.ropeproject#mkdocsdocumentation/site#mypy.mypy_cache/.dmypy.jsondmypy.json#Pyretypechecker.pyre/#pytypestatictypeanalyzer.pytype/#Cythondebugsymbolscython_debug/注意,这个默认会忽略env相关的内容,这个判断是否使用.idea/.vscode/.DS_StorePipfile.lock*.log我一般是手动添加内容首先忽略的是idea和vscode的配置文件夹如果你已经提交.idea或者.vscode,可以吃后悔药,比如:gitrm--cached-r.idea然后mac上会出现.DS_Store并且ignorePipfile.lock是pipenv生成的,和当前os强绑定当然,不需要提交日志文件,当然不需要!
