Git: Merge, Cherry-Pick & Rebase
Contents
00 Introduction
01 Git Storage Internals
- Scenario: Committing Two Files
- Inspecting Git repos: 'git cat-file'
- .Git Folder
- Git SHA Sum
02 Git Refresher: Commits, Branches & Heads
- What your repository looks like
- What is a branch?
- What is HEAD?
- What is a detached HEAD?
- What are refs/heads?
03 Git Merge: Behind the Scenes
- Scenario
- How Git spots differences
- Diff 1: Merge Base vs First Merge Commit
- Diff 2: Merge Base vs Second Merge Commit
- Git-Diff
- What Git will do with the diff result
- Merge Markers
- Solving a Merge
04 Git Cherry-Pick: Behind the Scenes
- Scenario
-
Diff 1:
updated readme.txt
vsAuthors.txt
-
Diff 2:
updated readme.txt
vsMIT license
- Git’s Cherry-Pick Algorithm
05 Git Rebase: Behind the Scenes
- Scenario
- How Rebases Work
- First Rebase
- Second Rebase
- Final Exam