gitignore常用配置
[toc]java版以下是.gitignore的常用配置需要的话可以自己再添加一些啊。.mymetadata.checkstyle.classpath.project.class.war.zip.rar.idea*.iml.settings/*/indexes/*/target/*/src/main/webapp/WEB-INF/classes/*/src/main/webapp/userfiles/*/target//target mobile.sql官网自带的代码是HELP.md target/!.mvn/wrapper/maven-wrapper.jar!**/src/main/**!**/src/test/**python版# Byte-compiled / optimized / DLL files__pycache__/*.py[cod]*$py.class# C extensions*.so# Distribution / packaging.Python build/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/share/python-wheels/*.egg-info/.installed.cfg*.egg MANIFEST# 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 logspip-log.txt pip-delete-this-directory.txt# Unit test / coverage reportshtmlcov/.tox/.nox/.coverage.coverage.*.cache nosetests.xml coverage.xml*.cover*.py,cover.hypothesis/.pytest_cache/cover/# Translations*.mo*.pot# Django stuff:*.log local_settings.py db.sqlite3 db.sqlite3-journal# Flask stuff:instance/.webassets-cache# Scrapy stuff:.scrapy# Sphinx documentationdocs/_build/# PyBuilder.pybuilder/target/# Jupyter Notebook.ipynb_checkpoints# IPythonprofile_default/ipython_config.py# pyenv# For a library or package, you might want to ignore these files since the code is# intended to run in multiple environments; otherwise, check them in:# .python-version# pipenv# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.# However, in case of collaboration, if having platform-specific dependencies or dependencies# having no cross-platform support, pipenv may install dependencies that dont work, or not# install all needed dependencies.#Pipfile.lock# PEP 582; used by e.g. github.com/David-OConnor/pyflow__pypackages__/# Celery stuffcelerybeat-schedule celerybeat.pid# SageMath parsed files*.sage.py# Environments.env.venv env/venv/ENV/env.bak/venv.bak/# Spyder project settings.spyderproject.spyproject# Rope project settings.ropeproject# mkdocs documentation/site# mypy.mypy_cache/.dmypy.json dmypy.json# Pyre type checker.pyre/# pytype static type analyzer.pytype/# Cython debug symbolscython_debug/# 1. 忽略整个 .idea 目录.idea/# 2. 强制不忽略放行团队需要共享的核心配置文件!.idea/misc.xml !.idea/modules.xml !.idea/vcs.xml !.idea/inspectionProfiles/STS.apt_generated.classpath.factorypath.project.settings.springBeans.sts4-cacheIntelliJ IDEA.idea*.iws*.iml*.iprNetBeans/nbproject/private//nbbuild//dist//nbdist//.nb-gradle/build/VS Code.vscode/语法解释虽然一直在用但是并不是很清楚。.(点号)表示什么意思.(点号) 表示按扩展名匹配实战忽略application-dkh.yml试了几种通配符方法不好用干脆直接全路径实测有效。startup/src/main/resources/application-dkh.yml前提文件未被add如果添加了那么ignore应该是无效的。