Different Types of Source Code Repositories
Source code repositories are classified based on how code is stored, managed, and shared among developers.
퇽훹 1. Centralized Version Control System (CVCS)
퇽회 Description
- A single central server stores the entire codebase
- Developers connect to this server to access and update code
퇽훹 Features
- One main repository
- Easier to manage for small teams
- Requires network connection
퇽훹 Example
- Apache Subversion (SVN)
퇽훹 2. Distributed Version Control System (DVCS)
퇽회 Description
- Each developer has a complete copy of the repository
- Changes can be made offline and synced later
퇽훹 Features
- Faster operations
- Better collaboration
- Offline work possible
퇽훹 Examples
- Git
- Mercurial
퇽훹 3. Local Repository
퇽회 Description
- Code stored on a single local machine
- No collaboration features
퇽훹 Features
- Simple and fast
- Not suitable for teams
퇽훹 4. Remote Repository
퇽회 Description
- Repository hosted on a server or cloud platform
- Accessible by multiple users
퇽훹 Examples
- GitHub
- GitLab
- Bitbucket
퇽훹 Comparison Table
| Type | Storage | Collaboration | Internet Required |
|---|---|---|---|
| Local | Single system | ℌ No | ℌ No |
| Centralized | Central server | Yes | Yes |
| Distributed | Multiple copies | Yes | Optional |
| Remote | Online server | Yes | Yes |
