Suggest an editImprove this articleRefine the answer for “What is a repository in Git?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**A repository** is a project storage where Git keeps the source code, change history, branches, and service data. **Key point:** a repository is a project folder that Git tracks.Shown above the full answer for quick recall.Answer (EN)Image**A repository in Git** is a **project storage** where Git keeps **the source code, change history, branches, and service data**. In simpler terms, a repository is **a project folder that Git tracks**. ### What is in a repository: - project files (code, configs, resources); - **the history of all changes** (commits); - branches; - tags; - the `.git` service directory (the heart of the repository). ### Types of repositories: - **Local repository** - stored on your computer. - **Remote repository** - located on a server (for collaborative work). ### Why a repository is needed: - to track code changes; - to work in a team; - to go back to previous versions; - to experiment with code safely. ### Short answer for an interview: > **A repository is the place where Git stores the project and its entire change history.**For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.