A game studio edits Unity scenes and PSD files, and merges of binary files keep destroying work.
AdvancedScenarioScale, Submodules, LFS and GitHub Automation
Answer
Situation read → Binary files cannot be merged, so concurrent edits mean one person's work is lost.
What I'd do →
- Track binaries with LFS and mark them lockable:
git lfs track "*.psd" --lockable. - Artists lock before editing:
git lfs lock art/hero.psd, and unlock when pushed. - Lockable files are read-only locally until locked, preventing accidents.
- Set Unity to text-based YAML serialisation and use its smart merge tool for scenes.
Why → Locks turn a merge problem into a coordination problem, which is solvable.
Interview tip → git lfs locks shows who holds what.
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