Version Control for Game Projects: Git, Large Files and Backups

git for game development

Worried that your textures and models will choke a repository? Git for game development works well if you add Git LFS for large binary files, ignore engine-generated folders, and lock files your team cannot merge.

This guide is part of our game development tools collection, which covers the wider toolkit around making a game.

Item Value
Largest single file on GitHub 100MB
Largest upload through the GitHub web page 25MB
Free GitHub LFS storage 10 GiB
Free GitHub LFS bandwidth 10 GiB per month
LFS file size limit on the free GitHub plan 2 GiB up to 4 GiB

The first two figures come from a DEV Community guide (edited February 2024); the LFS figures come from an Anchorpoint article (updated February 2026). Limits and plans can change, so check the source before you rely on them.

Why do game projects strain plain Git?

Git is built for small text files, and a Classmethod write-up puts it plainly: git is specialized for text files and is not well-suited for managing binary files. Games are full of them: textures, models, audio and video.

The cost adds up fast. Binary files cannot be diffed or merged, and Git stores a full copy of every version, so a 50 MB texture modified 20 times consumes 1 GB of repository history, according to kindatechnical (updated March 2026). The same page puts a small indie game at 1-10 GB in total.

Hosting adds hard ceilings. As of the DEV Community guide’s February 2024 edit, no single file on GitHub can be more than 100MB, and the web upload page only takes files rather than folders, up to 25MB each. You can read the details in the same guide.

A typical game repository mixes several kinds of content, and each one behaves differently:

  • Source code, which diffs and merges cleanly.
  • Scene and prefab files, which merge only if the engine saves them as text.
  • Textures, models, audio and video, which are binary and bulky.

How Git LFS keeps big assets manageable

Git LFS replaces large binary files with small pointer files in the repository and stores the real content on a separate LFS server. Per kindatechnical, a pointer file is roughly 130 bytes, and checkout downloads the real file transparently.

Setup is short. This is the basic sequence:

  1. Install Git LFS once per machine, then run git lfs install inside your repository.
  2. Track the file types you want handled by LFS, for example git lfs track “*.psd”.
  3. Add and commit the .gitattributes file, which stores the tracking rules.
  4. Add, commit and push as usual.

The .gitattributes file must be committed to the repository so all team members track the same file types, as kindatechnical explains. Developers who skip this step often hit repository limit errors, a pitfall the Anchorpoint article also describes.

Source files such as .blend belong on that tracked list, and our guide on how to use blender for game assets covers the asset side of the workflow.

LFS has quirks worth knowing. In some edge cases, such as conflicts, file contents can be replaced by a pointer file, and large repositories may need their cache pruned to save space, according to the Anchorpoint article.

git for game development Laptop
An open laptop sits on a light desk with its keyboard in the foreground.

What to ignore and what to keep as text

Engines generate folders you should never commit. The kindatechnical Unity .gitignore example excludes these:

  • Library, Temp and Obj folders.
  • Build, Builds and Logs folders.
  • The UserSettings folder.

For Godot, the same page ignores the .godot folder plus *.import, export.cfg and export_presets.cfg. In Unity, set Asset Serialization to Force Text (Edit, Project Settings, Editor) so .unity, .prefab and .asset files become diffable and mergeable.

Unreal projects can use a whitelist approach. The Classmethod guide, linked above, ignores everything first, then allows only what is needed, such as .uasset and .umap files from the Content folder, which are tracked by LFS. It notes that public templates for .gitignore and .gitattributes already exist for Unreal projects.

Small projects may not need LFS at all. The Anchorpoint article says Git LFS may be unnecessary for small mods, small games or websites, and that a partial clone with git clone –filter=blob:none can download a repository without its binaries.

Locking, Perforce and other options

Two artists editing one texture is the classic disaster. Perforce prevents it by requiring checkout before editing, so only one person can edit a binary file at a time, according to kindatechnical. The same page calls Perforce the industry standard for AAA game studios.

Git LFS also supports file locking, though it is opt-in and less universally adopted. Mark file types as lockable in .gitattributes, then use these commands:

  • git lfs lock followed by the file path, to claim a file.
  • git lfs unlock followed by the file path, to release it.
  • git lfs locks, to list every current lock.

The trade-offs differ. Git is distributed and fully usable offline, while Perforce is centralized with limited offline work. The kindatechnical comparison lists Perforce as free up to 5 users, then paid, and recommends Git with LFS on GitHub or GitLab for most indie and small teams. For larger teams (10+ people) with heavy binary assets, it suggests Perforce or a hybrid of Git for code and Perforce for assets.

Other routes exist. The Anchorpoint article lists Anchorpoint itself, plain Git, Perforce, Unity Version Control and SVN, and its sibling post admits the authors develop and sell Anchorpoint, so weigh that as a vendor view. For desktop clients, that post also names SourceTree, GitHub Desktop and GitKraken.

Hosting limits, costs and keeping copies safe

As of the Anchorpoint article’s February 2026 update, GitHub’s free plan includes 10 GiB of LFS storage and 10 GiB of bandwidth per month, with an LFS file size limit of 2 GiB up to 4 GiB. Fetching LFS data counts towards traffic, so heavy daily syncing eats the allowance. The figures are in the Anchorpoint article.

The same article describes Azure DevOps as offering unlimited free storage for Git LFS and 250 GiB for non-LFS, with most services free for a team of 5 or less. Gitea is open source and free to self-host, and its cloud plans start at $9.5 up to $19 per user per month. Prices shift, so confirm them with the original article and the provider.

Running past a quota has a real consequence. The Classmethod guide warns that if you exceed GitHub or GitLab LFS limits, you cannot upload data without additional payment, so check the limits against your project’s scale first.

For backups, treat the hosted repository as your source of truth for assets and engine content, a phrase from Anchorpoint’s Git studio post. Git has no lock-in effect, so if a host changes its pricing you can move to another service without high switching costs. That post also says Git is used by 93% of software developers worldwide, which means help is easy to find.

If budget drives your choice, our roundup of the best free game development software is a good next stop.

Frequently asked questions

Do I need Git LFS for a small game?

Show answer

Not always. The Anchorpoint article says LFS may be unnecessary for small mods, small games or websites. Once textures, models or audio start growing, adding it early is easier than rewriting history later.

What is the largest file I can push to GitHub without LFS?

Show answer

As of the DEV Community guide’s February 2024 edit, no single file can be more than 100MB, and the web upload page stops at 25MB. See the guide for details.

Can two artists edit the same texture safely?

Show answer

Only with locking. Binary files cannot be merged, so mark them lockable in .gitattributes and use git lfs lock, or choose a tool such as Perforce that enforces checkout, as described by kindatechnical.

Is Perforce better than Git for games?

Show answer

It depends on team size and assets. kindatechnical calls Perforce the AAA standard but recommends Git with LFS for most indie and small teams, as its comparison page shows.