Why Git Branches?

Explained Simply — For Beginners

Finished Episode 15? You can upload and Sync. This episode explains why teams use branches — your own safe copy of the project.

A shared Word document

Suppose your team has one official document. If everyone edits the same file at the same time, things go wrong fast.

Everyone on one file
📄
✏️ Alex ✏️ Sam ✏️ You
  • Someone can break another person’s work
  • Half-finished changes show up for everyone
  • Hard to know which version is correct
Everyone has a copy
📄 Official
📄 Your draft
📄 Sam’s draft

Work on your copy. Merge back only when it’s ready.

Click Next — see the problem with one shared file

0 / 2

What is a Git branch?

A Git branch is exactly that: your own working copy of the project.

Official project
→
Your branch = your draft
→
Merge when ready
Think of the main branch as the official version of a project. A branch is your personal workspace where you can work freely, save progress, collaborate with teammates, and only publish your changes when they’re complete and reviewed.

Six reasons — all beginner-friendly

You don’t create a branch to look “technical.” You create one so your work stays safe, clear, and shareable.

1

Work independently

A branch gives you your own workspace. You can make changes without affecting the main project.

Think of it as your own draft before publishing.

2

Keep incomplete work off main

A task may take several days. You might finish only 30% today. Without a branch you’d leave main half-finished — or avoid saving.

With a branch, save progress often while main stays stable.

3

Take a break and continue later

You’re halfway through one task — say updating a landing-page draft. Before you finish, someone asks you to change copy on another page. Your current branch keeps that unfinished work safe.

Save (commit) this branch, switch to a new branch for the other page, then come back later — right where you left off.

4

Collaborate with others

You started a feature — now a teammate needs to help. They can check out your branch, continue the work, and push their changes.

Multiple people can share one branch before it’s merged.

5

Save your work anytime

You don’t have to wait until the task is “done” to push. Commit and push your branch whenever you want.

  • Backup of your work
  • Easy to continue on another computer
  • Others can see or help
  • Main stays untouched until you merge
6

Protect the stable version

The main branch should stay tested and ready. Branches let you experiment without risking that stable copy.

If something goes wrong, fix — or even discard — only the branch.

One branch · one task

  • You usually cannot switch (checkout) to another branch until you Commit — Save — your changes on the branch you’re on.
  • Don’t start another task without switching branches first.
  • One branch = one task. Landing-page copy and a different page’s rewrite? Two branches.

Writing an important report

Map Git words to drafting a report — same meanings, plain language.

main
→
The final submitted report (official, stable version)
Branch
→
Your personal draft / working copy
Commit
→
Pressing Save — needed before you switch branches
Push
→
Saving the draft to the cloud — backed up, shareable
Merge
→
Approved draft becomes the official report
Checkout
→
Switch which draft you’re editing (after you Commit)

Click Next to reveal each pair

0 / 6

Keep this line

A branch is your personal workspace where you can safely develop, save, experiment, and collaborate without affecting the main project until your work is ready.

Draft safely. Merge when ready.

📄
Official = main
Stable shared version
→
🔀
Checkout
Switch to your draft branch
→
✍️
Your branch
Personal draft workspace
→
☁️
Commit · Push
Save & back up anytime
→
✅
Merge
Publish when ready

Quick quiz

1. A Git branch is closest to…

2. Why keep incomplete work on a branch instead of main?

3. “Push” on a branch is like…

4. Before you switch to another branch for a different task, you should…