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

Preconfigured with Virtual Env
Search for templates
Quick add:
Selected1
Virtual Env
Selected Templates (1)
.gitignore
12 rules
### 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
22 lines•UTF-8
Deterministic

Raw Virtual Env .gitignore

Crawlable upstream source template
virtualenv.gitignore•21 lines•UTF-8
# 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.