← All labs

// hands-on lab

Branch workflow

~12 min

Practice branch → commit → switch back, end to end.

Continue in the shell (git init first if you're in a fresh session):

  1. git init && touch config.yaml && git add . && git commit -m "base config"
  2. Create a work branch: git checkout -b tune-limits
  3. git branch — the * marks where you are
  4. Make a change: echo "cpu: 500m" >> config.yaml then git add . && git commit -m "raise cpu limit"
  5. git log — see both commits on this branch
  6. Return home: git checkout main

// checklist 0/4

Sign in to save checklist progress.

Linux practice shell · instant, in-page · ephemeralOpen in new tab ↗
practice-shell — bash
Git drill 2 — branch, commit on it, come home. Watch the * in git branch.
 

Instant practice shell (simulated) — everything for this lab works here. Need the real thing? Open the full Linux VM ↗