網(wǎng)站首頁(yè) 編程語(yǔ)言 正文
參考資料:
https://blog.csdn.net/HYESC/article/details/89763114
使用git管理項(xiàng)目的時(shí)候,經(jīng)常發(fā)現(xiàn)項(xiàng)目里面多出來了奇怪的東西。有很多緩存文件或者大文件我們不想同步到云端倉(cāng)庫(kù)里,此時(shí)我們可以使用.gitignore文件方便地管理。python語(yǔ)言常用的.gitignore文件如下:
# 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/
*.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 logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
.idea/
# celery beat schedule file
celerybeat-schedule
workspace.xml
# SageMath parsed files
*.sage.py
.idea/workspace.xml
# 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/
原文鏈接:https://blog.csdn.net/weixin_43590796/article/details/119557357
相關(guān)推薦
- 2022-08-23 C++深入探究友元使用_C 語(yǔ)言
- 2022-12-10 一文帶你快速了解C/C++標(biāo)準(zhǔn)庫(kù)中的ptrdiff_t_C 語(yǔ)言
- 2022-07-22 CondaVerificationError:關(guān)于conda虛擬環(huán)境卸載后導(dǎo)致python版本腐化的
- 2022-07-19 Redis中pop出隊(duì)列多個(gè)元素思考_實(shí)用技巧
- 2023-02-04 GO語(yǔ)言并發(fā)之好用的sync包詳解_Golang
- 2022-11-03 Python?文檔解析lxml庫(kù)的使用詳解_python
- 2022-05-22 Nginx的基本概念和原理_nginx
- 2022-04-21 python數(shù)據(jù)類型bytes?和?bytearray的使用與區(qū)別_python
- 最近更新
-
- window11 系統(tǒng)安裝 yarn
- 超詳細(xì)win安裝深度學(xué)習(xí)環(huán)境2025年最新版(
- Linux 中運(yùn)行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲(chǔ)小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎(chǔ)操作-- 運(yùn)算符,流程控制 Flo
- 1. Int 和Integer 的區(qū)別,Jav
- spring @retryable不生效的一種
- Spring Security之認(rèn)證信息的處理
- Spring Security之認(rèn)證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權(quán)
- redisson分布式鎖中waittime的設(shè)
- maven:解決release錯(cuò)誤:Artif
- restTemplate使用總結(jié)
- Spring Security之安全異常處理
- MybatisPlus優(yōu)雅實(shí)現(xiàn)加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務(wù)發(fā)現(xiàn)-Nac
- Spring Security之基于HttpR
- Redis 底層數(shù)據(jù)結(jié)構(gòu)-簡(jiǎn)單動(dòng)態(tài)字符串(SD
- arthas操作spring被代理目標(biāo)對(duì)象命令
- Spring中的單例模式應(yīng)用詳解
- 聊聊消息隊(duì)列,發(fā)送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠(yuǎn)程分支