Repository
A project folder tracked by Git, together with its whole history.
Not the same as a folder
A folder holds the current files. A repository holds their whole history too, in a hidden `.git` directory — which is why copying a project without it loses everything except this moment.
Where it bites
A repository remembers what you committed even after you delete it. A secret committed once and removed in the next commit is still in the history, and pushing that history publishes it.
Covered in these lessons
Related terms
Where this comes up
Also written as repository, repo. Checked 2026-08-06.