Skip to content
devops12 active rulesVerified 2026-09-30

Virtual Env .gitignore Template

Standard Virtual Env gitignore template from upstream github/gitignore collection. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Open in Full Generator
Search for templates
Quick add:
Selected1
Virtual Env
Selected Templates (1)
.gitignore
### Virtual Env ###
# Virtualenv
# https://realpython.com/python-virtual-environments-a-primer/#the-virtualenv-project
.venv/
venv/
.python-version
# pyenv: Simple Python Version Management
pyvenv.cfg
# pip: package installer for Python
pip-selfcheck.json
# Custom python interpreter
.Python
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
12 rules1 template22 lines
Deterministic

Raw Virtual Env .gitignore

Crawlable upstream source template
virtualenv.gitignore21 lines
# Virtualenv
# https://realpython.com/python-virtual-environments-a-primer/#the-virtualenv-project
.venv/
venv/
.python-version
# pyenv: Simple Python Version Management
pyvenv.cfg
# pip: package installer for Python
pip-selfcheck.json
# Custom python interpreter
.Python
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts

Key Pattern Breakdown

Core Ignored Rules

Primary upstream ignore rules defined for this technology.

.venv/venv/.python-versionpyvenv.cfgpip-selfcheck.json.Python+2 more

Source & Verification

License:: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.