Hotfix in a Second Worktree

medium 20 XP ~7 minHands-on lab

You are in the middle of feature/search-index in /home/student/repos/webapp, with uncommitted changes you are not ready to commit or stash. Production (tag v1.2.0) has a bug: limits.conf says max_connections=10, it must be 100.

Task

  • Create a second worktree at /home/student/hotfix on a new branch hotfix/1.2.1 that starts from tag v1.2.0.
  • On that branch, commit the fix (max_connections=100 in limits.conf) and set VERSION to 1.2.1, in one or more commits.
  • Your original worktree must stay exactly as it was: still on feature/search-index, with the same uncommitted changes.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

TerminalNot started

Your machine is ready to start

Create a free account to open a machine and get graded.