Part 2 of 6 · Chapter 4 of 4

What Must Never Reach the Repository

A .gitignore is a list of patterns matched against paths, and it has no effect whatsoever on a file Git is already tracking — which is the trap that leaks credentials. Toggle patterns against a real tree and watch which paths survive.

Beginner11 min read

Make a free account to read on

Every chapter is free — an account is how your progress, XP, and streak follow you from your laptop to your phone, and how you show up on the leaderboard. No payment, no trial.