Erik Fredericks, frederer@gvsu.edu Fall 2025
Based on material provided by Erin Carrier, Austin Ferguson, and Katherine Bowers
Ways for dev teams to explore new features, work independently, etc.
Branches have shared history
Changing one branch (including main) does not immediately impact the other
main
Default branch:
master
Workflow:
git branch -a
git branch branchname
Switch to existing branch
git switch branchname
git checkout branchname
Create and switch to new branch
git switch -c branchname
git checkout -b branchname
Check where you're at?
git status
Done and want to incorporate changes (i.e., into main)
git switch
git checkout
git merge branchname
git branch -d branchname