The remote repository (GitHub, GitLab, Bitbucket) is used for collaboration.
📂 Types of Git Repositories ⇒
Git repositories are classified into two types:
1️⃣ Bare Repositories (Central Repository)
- These repositories only store and share data.
- They do not contain a working directory, meaning files cannot be edited directly.
- All central repositories (remote repositories) are bare repositories.
- Example: A Git server hosting a central repository, like GitHub, GitLab, or Bitbucket.
2️⃣ Non-Bare Repositories (Local Repository)
- These repositories contain a working directory where you can modify, add, and delete files.
- All local repositories are non-bare repositories.
- Example: The local copy of a project that developers clone and work on.