Ignore Everything Except a Few Files
/home/student/repos/webapp/config/ fills up with machine-specific files (config/local/*.yaml, config/secrets/*, *.override.json…). Only two files in it belong in Git: config/defaults.yaml and config/templates/app.yaml.example. A teammate tried config/* with !config/templates/app.yaml.example, but the template stays ignored.
Write /home/student/repos/webapp/.gitignore so that git status shows only .gitignore, config/defaults.yaml and config/templates/app.yaml.example as untracked: everything else under config/ (at any depth, including new files later) is ignored. Files outside config/ must not be affected. Don't commit anything.
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.
Part of Git Essentials. Next step: Work on a Feature Branch
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.