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.
