New hires lose days to environment setup. How can Git hosting help?
BeginnerScenarioScale, Submodules, LFS and GitHub Automation
Answer
Situation read → The environment should be code in the repo.
What I'd do →
- Add a
.devcontainer/devcontainer.jsonwith the toolchain and extensions. - Let new hires open a Codespace, or use the same file locally in VS Code.
- Keep a
make setupthat installs hooks and dependencies. - Prebuild Codespaces to cut startup time.
Why → One definition gives everyone the same environment, so setup bugs vanish.
Interview tip → Devcontainers work outside Codespaces, so no lock-in.
More on Scale, Submodules, LFS and GitHub Automation
A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?IntermediateDesigners commit PSD and video assets, and the repo keeps growing. How do you move them to Git LFS?IntermediateYour GitHub LFS bandwidth quota is exhausted and CI pulls fail. What do you do?AdvancedA repository uses a submodule. How does a developer get the right version of it?BeginnerSubmodules, subtree or a package manager for sharing code between repos?IntermediateCI cannot clone a private submodule: authentication fails in `actions/checkout`.Intermediate