Table of Contents
Git vs GitHub
Git
A distributed version control system used to track changes in source code during software development.
- Local tool for managing code versions.
- Commands like commit, merge, branch, etc.
GitHub
A web-based platform that uses Git for version control and provides additional features for collaboration.
- Host repositories online.
- Features like pull requests, security, backups, issues, and project management tools.
Key Differences
- Functionality:
- Git: Version control system.
- GitHub: Hosting service for Git repositories with additional collaboration features.
- Usage:
- Git: Used locally on a developer’s machine.
- GitHub: Used for sharing and collaborating on repositories online.
GitHub UI Overview
Creating a Repository
- Go to Repositories: Click on the "Repositories" tab.
- New Repository: Click the "New" button.
- Fill Details: Provide a name and description, and choose visibility (public/private).
- Initialize: Optionally add a README file.
- Create: Click the "Create repository" button.
Adding Collaborators
- Access Settings: Go to the repository and click on "Settings".
- Manage Access: Click on "Manage access".