Sharing One Unity Repo With a Co-Development Team in India: Branching, LFS and Build Rules to Agree on Day One
When a studio brings in a co-development team in India, the first real friction usually isn't the work itself. It's the repository. Two teams, five and a half hours or more apart, pushing to the same Unity project can wipe out each other's scene changes, fill the remote with huge binaries, or break the build overnight while the other side is asleep. None of this is hard to prevent, but it has to…
When a game studio hires a co-development team in India, the main headache often isn't the actual work. Instead, it's the Unity project repository that two teams in separate time zones share. To avoid conflicts, the following ground rules should be agreed upon before the first commit:
1. A clear branching model must be defined. The main branch, which is always releasable, should be protected and not modified directly. Each team works on short-lived feature branches with prefixes (e.g., studio/ and codev/), making it immediately clear who owns what. Feature merges require at least one reviewer from the other team for changes to shared systems. Short- lived branches are crucial due to time zone differences.
2. Set up Git LFS or your VCS equivalent before any art files are uploaded. Unity projects usually contain textures, audio, FBX files, and other large binaries. Without LFS, every version of every asset will accumulate in the repository history, making remote cloning slow. Before any assets are added, create a .gitattributes file to track the binary types used (e.g., *.png, *.psd, *.fbx, *.wav).
Enable file locking for binary files that cannot be merged, and agree to lock files before editing them. Check the hosting plan's LFS storage and bandwidth limits, as two teams pulling daily can quickly consume resources.
3. Unity project settings must enable merging. Set Asset Serialization to Force Text and Version Control mode to Visible Meta Files, allowing scenes and prefabs to be compared using diffs. Configure Unity's Smart Merge (UnityYAMLMerge) as the merge tool for .unity and .prefab files. Both teams should use the exact same Unity editor version, including patch numbers, and only upgrade with mutual agreement.
4. Ownership of scenes and prefabs should be clear. Text serialization helps, but simultaneously editing the same scene can easily lead to lost work. Split large scenes into additive sub-scenes, move shared pieces into prefabs, and maintain a simple list indicating who can edit which scene during a sprint.
5. A functional build must be available without anyone being asleep. Implement CI so that every merge to the main branch generates a build accessible to both teams. If a build fails, the responsible person should be notified. At the end of each day, the studio should wake up to a working build or a clear explanation of why there isn't one.
Rules to ensure this include a red build on main being fixed before merging any other changes, and each build being tagged with its commit hash for easy reference in bug reports. Platform-specific steps, such as signing keys and store uploads, should be handled by the team that owns the relevant accounts.
6. A brief handover note should be created at the end of each day. The overlap between India and the US or UK is short, so a written handover is essential for resolving decisions rather than status updates. This note should include what was merged, what is blocked, and what the other team should address first. Before adopting any of these practices, it's advisable to test them on a small project first.
Running a one-week pilot before signing a game outsourcing contract is recommended. If you're considering a team in India that already follows these practices, Juego Studios offers game co-development services for Unity and Unreal projects.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to