Sign inSign up free

773. Clean Build Junk, Keep Your Local Secrets

easy 10 XP ~6 minHands-on lab

/home/student/repos/data-pipeline is cluttered with leftovers from old builds: untracked files and folders all over the tree. Some ignored files must stay, though: your local .env with credentials and the downloaded vendor/ dependencies (both are in .gitignore).

Task

  • Delete every untracked file and folder that is not ignored (the junk git status lists).
  • Keep every ignored file and folder (.env, vendor/, *.log).
  • Don't touch tracked files, including ones you modified but haven't committed.

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: Stash Only Part of Your Changes

Teaching or writing about this? Embed this lab on your page

TerminalNot started

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.