What is a Git branch?

3,303 views · Published 14 September 2018 · 9:05 · Indexed 24 October 2026

Channel: Zell Liew · 2018 · Science & Technology

Watch on YouTube

Imagine there are parallel worlds. We have:

1. A world where I have created this video, and you're watching it.
2. A world where I have created this video, but you're not watching it.
3. A world where I did not create this video.

In this parallel world concept, a Git branch is a parallel world.

You can have a branch that stays the same in one world. Then, you branch off into a different world. Once you finish your code, you can complete the initial world by merging the changes into it.

TIMESTAMPS
=====
- 00:00 - What is a branch
- 00:50 - How to create a branch
- 02:00 - Why create a development branch
- 03:06 - How to code on a new branch
- 04:54 - Pushing branches into the remote
- 05:16 - Switching between branches
- 05:46 - Merging branches
- 07:40 - Deleting a branch


LINKS
=====
- Text / Podcast version: https://zellwk.com/blog/git-branch
- Website: https://zellwk.com

More from this channel