Your Git Cheatsheet
97%
Ignoring Files
A .gitignore file tells Git which files to skip. Common entries for Python:
# example .gitignore for Python projects
__pycache__/ # Compiled bytecode
*.pyc # Individual compiled files
venv/ # Virtual environment
.env # Secrets and API keys
.vscode/ # Editor settings
.idea/ # Editor settings
| Pattern | Matches |
|---|---|
*.pyc | Any file ending in .pyc |
__pycache__/ | The folder and everything inside it |
Learn Git in a Day
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.
Unlock now $9.99$7.49Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
