
Lesson 07 · 10 min
.gitignore
node_modules, .env and the build don't go into history. Ignore before add.
A .gitignore file in the root: patterns for what Git shouldn't see. node_modules/, .env, dist/. Ignoring won't remove something already committed: you need git rm --cached. Secrets stay in history until you clean them out separately — it's easier not to commit them.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.