Skip to content

chore: add venv/ to .gitignore - #111

Open
zuixiang666 wants to merge 1 commit into
initialcommit-com:mainfrom
zuixiang666:main
Open

zuixiang666 wants to merge 1 commit into
initialcommit-com:mainfrom
zuixiang666:main

Conversation

@zuixiang666

Copy link
Copy Markdown

What does this PR do?

This PR adds the venv/ directory to the .gitignore file.

Why is this needed?

When developers create a local Python virtual environment using python -m venv venv, running git status shows thousands of untracked files from the virtual environment. Adding venv/ to .gitignore keeps the repository clean and prevents accidental commits of local environment files.


(中文备注)
你好,我发现本地使用 venv 创建虚拟环境后,git status 会显示大量未跟踪的依赖文件。建议在 .gitignore 中加入 venv/,这样能保持仓库整洁,这也是 Python 项目的常见规范。感谢你的开源工作!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant