Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Keep Junk Out of Your Repo
62%

A Real-World .gitignore

Let's create a .env file and a virtual environment to confirm they're being ignored:

echo "SECRET_KEY=abc123" > .env


# Install virtualenv if you don't have it
apt-get install python3-venv -y
python3 -m venv venv

Check the status:

Learn Git in a Day

Everything you need, nothing you don't

Enroll now to unlock all content and receive all future updates for free.