Ignore Pattern Fill
Fill in the Blank Easy
Question
Fill in the blank in .gitignore to ignore all files ending in .env.
Code
___
Hint
The asterisk matches any filename.
Explanation
*.env in .gitignore matches any file ending with .env, such as production.env, staging.env, or just .env. The * is a wildcard that matches zero or more characters. This is commonly used to prevent secret files from being committed.
Related Resources
Related Lessons
Related Cheatsheets
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.