0Pricing
Frontend Academy · Lesson

Branching: branch checkout merge

Create feature branches, switch between them, merge branches back to main, and resolve simple merge conflicts.

Why Branches?

Branches let multiple features and bug fixes be developed in parallel without interfering with each other. Main (or master) stays stable while work-in-progress lives in feature branches.

Listing and Creating Branches

git branch lists branches. git branch name creates a new branch. The new branch starts from the current commit.

git branch             # list all branches
git branch feature/auth # create a new branch
git branch -d feature/auth # delete merged branch

All lessons in this course

  1. git init add commit and status
  2. Branching: branch checkout merge
  3. Remote Repos: push pull clone
  4. Pull Request Workflow on GitHub
← Back to Frontend Academy