GitHub uses Git, a distributed version control system, to track every change made to the source code.
Benefits:
- Allows multiple developers to work simultaneously
- Maintains complete history of changes
- Enables rollback to previous versions
A repository is a storage space for your project. It contains:
- Source code
- Files and folders
- Documentation
- Version history
Types of repositories:
- π Public β Visible to everyone
- π Private β Accessible only to selected users
Branching allows developers to create separate versions of a project to work on:
- New features
- Bug fixes
- Experiments
Changes can later be merged into the main branch.
Pull Requests are used to propose changes to a repository.
They allow teams to:
- Review code
- Discuss improvements
- Approve changes
- Merge safely
GitHub provides a built-in issue tracking system to:
- Report bugs
- Suggest features
- Assign tasks
- Track project progress
GitHub Actions is an automation tool that supports:
- Continuous Integration (CI)
- Continuous Deployment (CD)
It helps automate testing, building, and deployment workflows.
GitHub supports collaboration through:
- Code reviews
- Discussions
- Project boards
- Notifications
Each repository can include a README.md file written in Markdown format.
A README typically contains:
- Project description
- Installation steps
- Usage instructions
- Contribution guidelines
β GitHub makes software development organized, collaborative, and efficient.