Course: Source Control & CI/CD Hands-On — Coursera
Certificate: View Certificate
| Git | GitHub | |
|---|---|---|
| What it is | Version Control System | A platform for hosting Git repositories |
| Tracks | File changes, history, branches, merges, revert, cherry-pick | Collaboration, Pull Requests, Issues, etc. |
Git = the tool. GitHub = the platform/place where Git repositories are hosted.
project/
├── application files
└── .git/
├── history
├── branches
├── commits
└── configuration
git clone <repository-url>
Downloads the project and its Git history.
| Fork | Clone | |
|---|---|---|
| What | A copy of a repo on the hosting platform | A local copy on your machine |
| Diagram | Original Repo → Fork → Your GitHub Repo |
GitHub → clone → Local Machine |
| Use case | Contributing to a project you don't have direct write access to | Working locally on any repo |
| Name | Convention |
|---|---|
origin |
Your own repository |
upstream |
The original repository (when working from a fork) |
git remote add upstream <url>
git fetch upstream