brewly — Ch.2 · You'll see this elsewhere: checkout
Exercise 3 of 7
Before you start
Before switch existed
git checkout used to do both jobs: switching branches and restoring files. switch and restore split them up, but most older guides still say checkout.
- git checkout <name>
- switch branches, like
git switch <name> - git checkout -b <name>
- create and switch, like
git switch -c <name>
You can reopen this any time with “Lesson”.
# BrewlyOrder coffee ahead.## Team- Maya (lead)- Alex (frontend)
Graph
- cc9cbe6 Start the loyalty cardfeature/loyalty
- 1354d06 Add menu pageHEAD → mainorigin/main
- 619eb3b Style the order button
- 5fc44ac Initial commit