← Back to topic library
Dev MaxxingBeginnerGit60 sec
Git repository
A Git repository is a folder tracked by Git that stores a project's full history of changes, allowing any past version to be recovered.
What matters
Because every tracked change is preserved, a repository lets a team see who changed what and when, and revert mistakes without losing other work.
Example
Running 'git init' in a project folder turns it into a Git repository, ready to start tracking changes to its files.
Common misconception
A Git repository is not the same as a single backup copy; it stores the entire history of changes, not just the current state of the files.
Recall question
What does a Git repository preserve beyond just the current state of the files?
Keywords and related concepts
Git repositoryversion controlproject historygit commit