4/56
Sign inSign up free

66. Stop Tracking Build Output and Logs

easy 10 XP ~5 minHands-on lab100% acceptance

Someone committed generated files to /home/student/repos/inventory-api: the log app.log and the whole build/ directory. Every build now shows up as a change.

Task

  1. Make Git ignore all *.log files and the build/ directory using a .gitignore file at the repository root.
  2. Stop tracking app.log and everything in build/ — but keep the files on disk.
  3. Commit both changes with the message Stop tracking generated files.

The working tree must be clean afterwards.

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.

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.