49/56
Sign inSign up free

780. Check Out Only the Folders You Need

medium 20 XP ~7 minHands-on lab

/home/student/repos/data-pipeline is a monorepo with dozens of services under services/ and big generated assets under assets/. You only work on services/checkout and the shared code in libs/common, and every checkout takes ages.

Task

Configure the clone so that its working tree contains only:

  • the files at the top level of the repository (like README.md and Makefile),
  • services/checkout/ and libs/common/ with everything under them.

Every other folder must be absent from the working tree, but the repository must still have the full history (all commits and branches), and git status must be clean.

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.