Course: Source Control & CI/CD Hands-On — Coursera

Certificate: View Certificate


1. Source Control & Git

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.


2. Repository Structure

project/
├── application files
└── .git/
    ├── history
    ├── branches
    ├── commits
    └── configuration
git clone <repository-url>

Downloads the project and its Git history.


3. Fork vs Clone

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

4. Remotes

Name Convention
origin Your own repository
upstream The original repository (when working from a fork)
git remote add upstream <url>
git fetch upstream

5. Branches