Learn how to use version control in Git, starting from scratch.
Overview
Syllabus
Introduction
- Git from Scratch
- Why use version control?
- git init: Initialize a repository
- .gitignore: Ignore files
- git add: Add changes
- git commit: Commit changes to memory
- git status: Get the current status
- git branch: Create an alternate timeline
- HEAD: An introduction
- git switch: Go to an alternate timeline
- git checkout: Go to an alternate timeline
- DETACHED HEAD: An explanation
- The difference between switch and checkout
- git merge: Combine two timelines
- CONFLICT: How to fix merge conflicts
- git revert: Undo something
- git rebase: Move the base of a branch
Taught by
Morten Rand-Hendriksen