Source Code Repository
📌 Definition
A Source Code Repository is a centralized place where source code is stored, managed, and version-controlled. It allows developers to track changes, collaborate, and maintain different versions of a project.
🔹 Key Features
- Version Control – Tracks every change in code
- Collaboration – Multiple developers can work together
- Backup & Recovery – Stores history of code changes
- Branching & Merging – Work on features without affecting main code
- Access Control – Manage permissions for users
🔹 Types of Repositories
1. Centralized Repository
- Single central server
- Example: Apache Subversion
2. Distributed Repository
- Each developer has a full copy of the repository
- Example: Git
🔹 Popular Source Code Repository Platforms
- GitHub
- GitLab
- Bitbucket
🔹 Common Operations
- Commit – Save changes
- Push – Upload changes to repository
- Pull – Download updates
- Branch – Create a separate line of development
- Merge – Combine changes
🔹 Importance
- Ensures code integrity and history tracking
- Enables team collaboration
- Supports CI/CD pipelines
- Helps in rollback and debugging
🔹 Example
A team uses GitHub to store project code. Developers create branches, make changes, and merge them into the main branch after testing.