git
.gitignore tells git which files to never track in the first place — build output,
dependency folders, editor swap files, local secrets. Without one, a single careless
git add . can commit gigabytes of node_modules/ or, worse, a
.env file full of real credentials straight into history — where getting it back out
means rewriting that history, not just deleting the file.