Skip to main content

Course

Git and GitHub

Git and GitHubPart 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.


Make a free account to read on

Every chapter is free — an account lets your course progress follow you from your laptop to your phone. No payment, no trial.