Foundations·Lesson 2

Branching & Merging

branchswitchmerge

Branches are cheap pointers to commits. Make one for every feature or fix.

git switch -c feature # create + switch
git merge feature # bring it back
git branch -d feature # clean up

Now it's your turn

  1. Type the exact command, or pick the right answer.