Version control for game projects: Git, LFS and handling big asset files
Version control saves you from lost work and broken builds. But games have a twist: lots of large binary files (textures, models, audio) that traditional tools weren't designed for.
Why use version control at all
- Roll back when something breaks.
- Experiment on branches without risking the main project.
- Collaborate without emailing zip files.
- Keep an offsite backup if you use a hosted service.
Common options
- Git: the most popular choice, with many hosting services. Great for code, weaker for big binaries on its own.
- Git LFS (Large File Storage): stores large files outside the main repository and keeps small pointers in Git. Essential if you use Git for game assets.
- Perforce (Helix Core): widely used in larger studios, handles huge binary files and file locking well.
- Plastic SCM / Unity Version Control: designed with game workflows in mind.
Tips for Git users
- Set up a proper .gitignore for your engine to skip generated folders (like Unity's Library or Unreal's Intermediate and Saved).
- Configure LFS tracking for file types like .psd, .fbx, .wav, .png before committing them.
- Use file locking for binary files that can't be merged, so two people don't edit the same scene or asset.
- Commit often with clear messages.
- Check your host's storage and bandwidth limits for LFS.
Binary merges
Scenes and prefabs can cause conflicts. Splitting large scenes into smaller ones and agreeing who edits what reduces headaches.
What version control setup do you use for your game? Any horror stories from the days before you started using it?
Comments · 4
Git LFS is the key for big binaries, and add a .gitattributes file early. Retrofitting LFS after months of history is painful.
Perforce is worth a look for very large art teams. Git handles code fine, but locking binary files helps when two artists can't merge.
For a solo developer, is plain Git with LFS enough? Or do I need something heavier once the project grows?
For solo work, Git with LFS is plenty. Move to something heavier only if you have a team and lots of unmergeable binary files.