# GitHub
GitHub is a web-based platform for version control and collaboration using [[Git]]. Launched in 2008 and acquired by Microsoft in 2018, it has become the world's largest source code hosting service with over 100 million developers.
Beyond hosting repositories, GitHub provides issue tracking, pull requests, code review, CI/CD (GitHub Actions), project management, and social coding features. As such it can be considered as a [[DevSecOps]] platform.
## Key Features
- **Repositories**: Public and private Git hosting
- **[[Pull Requests (PRs)]]**: Code review and merge workflow
- **Issues**: Bug tracking and feature requests
- **Actions**: CI/CD automation pipelines
- **[[GitHub Copilot]]**: AI coding product family — completions, chat, agent mode, [[GitHub Copilot CLI|CLI]], and [[GitHub Copilot SDK|SDK]]
- **Pages**: Static site hosting
- **Packages**: Package registry (npm, Docker, etc.)
- **Codespaces**: Cloud development environments
## GitHub vs GitLab
| Aspect | GitHub | [[GitLab]] |
|--------|--------|---------|
| Ownership | Microsoft | Independent |
| CI/CD | Actions (YAML) | Built-in pipelines |
| Self-hosting | Enterprise only | Free (Community Edition) |
| Focus | Social coding, open source | DevOps lifecycle |
| Free private repos | Yes | Yes |
## Common Commands
```bash
# Clone a repository
git clone https://github.com/user/repo.git
# Add remote
git remote add origin https://github.com/user/repo.git
# Push to GitHub
git push -u origin main
# Create PR via CLI
gh pr create --title "Feature" --body "Description"
```
## GitHub CLI (gh)
See [[GitHub CLI (gh)]].
## References
- https://github.com
- https://docs.github.com
## Related
- [[Git]]
- [[GitHub CLI]]
- [[GitHub Actions]]
- [[GitHub Codespaces]]
- [[GitLab]]
- [[GitLab CLI (glab)]]
- [[Version Control]]
- [[Source Control Management (SCM)]]
- [[Version Control System (VCS)]]
- [[Distributed Version Control System (DVCS)]]
- [[DevOps]]
- [[DevSecOps]]