aiux
PatternsPatternsCoursesCoursesNewsNewsResourcesResources
Overview

Setup

  • Create Your GitHub Account
  • Install Git on Your Computer
  • Understanding Git Basics

Core Features

  • Clone Your First Repository
  • Making and Committing Changes
  • Working with Branches

Developer Collaboration

  • Creating Pull Requests
  • Reviewing and Merging PRs

Best Practices

  • Handling Merge Conflicts
  • GitHub Workflow for Design Teams
  1. Guides
  2. /
  3. GitHub Course for Designers
  4. /
  5. Working with Branches
Core FeaturesLesson 6 of 10

Working with Branches

2 min readGitHub for Designers

Branches let you work on new features or experiments without affecting the main codebase. Think of them as parallel timelines for your project.

Why Use Branches?

  • Work on features without breaking the main code
  • Multiple people can work on different things simultaneously
  • Easy to discard experiments that don't work out
  • Clean history when merging completed features

Create a New Branch

Terminal
# Create and switch to a new branch
git checkout -b feature/new-navigation

# Or with newer Git versions
git switch -c feature/new-navigation

Switch Between Branches

Terminal
# Switch to an existing branch
git checkout main

# See all branches
git branch

Branch Naming Conventions

Most teams use prefixes to categorize branches:

  • feature/ - New features (feature/user-profile)
  • fix/ - Bug fixes (fix/login-error)
  • design/ - Design changes (design/new-color-scheme)
  • docs/ - Documentation (docs/api-guide)
Always Know Your Branch

Before making changes, always check which branch you're on with "git branch" or look at your terminal prompt. Committing to the wrong branch is a common mistake!

Lesson Complete!

  • Create branches for new work
  • Switch between branches
  • Understand branch naming conventions

You're ready to work safely with branches!

← Previous LessonMaking and Committing ChangesNext Lesson →Creating Pull Requests
← Back to GitHub Course for Designers overview

On this page

  • Why Use Branches?
  • Create a New Branch
  • Switch Between Branches
  • Branch Naming Conventions

aiux

AI UX patterns from shipped products. Demos, code, and real examples.

Have an idea? Share feedback

Get daily AI UX news

Resources

  • All Patterns
  • Browse Categories
  • Contribute
  • AI Interaction Toolkit
  • Agent Readability Audit
  • Newsletter
  • Documentation
  • Figma Make Prompts
  • Designer Guides
  • All Resources →

Company

  • About Us
  • Privacy Policy
  • Terms of Service
  • Contact

Links

  • Portfolio
  • GitHub
  • LinkedIn
  • More Resources

Copyright © 2026 All Rights Reserved.