A periodical about version control, git, and the future of agentic version control.

Comparison

Git vs SVN: Distributed vs Centralized Version Control

Git vs SVN compared: repository model, branching, offline work, large binary files, access control and locking, migration, and what changes when AI coding agents commit code.

Version Controls Editors · Updated

The short answer

Git is a distributed version control system: every clone carries the full history, commits are made locally and shared by pushing, and branches are cheap pointers that teams create for every change. SVN (Apache Subversion) is centralized: there is one repository on a server, a working copy holds a single checked-out revision, and every commit goes straight to that server as the next repository-wide revision number.

For most software teams, and for any workflow built on pull requests or many parallel contributors (including coding agents), Git is the default choice. SVN still earns its place where a single source of truth, per-directory read permissions, exclusive locks on unmergeable files or checkouts of one folder of a very large repository matter more than branching and offline work.

Git vs SVN at a glance

GitApache Subversion (SVN)
Repository modelDistributed. Every clone is a full repository with the complete history.Centralized. One repository on a server; clients hold a working copy of one revision.
CommittingLocal and instant; shared later with git push.Straight to the server; needs a connection.
Revision identifiersContent hashes per commit (SHA-1 by default).One increasing number for the whole repository (r1, r2, r3…).
Branches and tagsLightweight references to commits; created and switched locally.Server-side copies of a directory, by convention under /branches and /tags.
MergingMerge and rebase are built around commit history; three-way merges by default.Merge tracking recorded in the svn:mergeinfo property (since Subversion 1.5).
Working offlineCommit, branch, diff, log and blame all work offline.Status and diff against the checked-out base work offline; commit, log and update need the server.
Partial checkoutWhole repository by default; sparse-checkout and partial clone narrow it.Any subdirectory can be checked out on its own.
Large binary filesEvery clone gets every version unless you use Git LFS, a partial clone or a shallow clone.Clients only fetch the revision they check out.
File lockingNot in Git itself; Git LFS adds file locking on hosts that support it.Built in: svn lock and the svn:needs-lock property.
Access controlRead access is per repository; hosts add branch protection and code owners for writes.Read and write permissions per path inside one repository (authz).
Empty directoriesNot tracked (a placeholder file is the usual workaround).Tracked.
LicenseGPLv2, free and open source.Apache License 2.0, free and open source.

Distributed vs centralized: where the history lives

The difference behind every other row is where the history lives. A Git clone is a complete repository: it holds every commit, branch and tag, and it can act as a remote for someone else. The shared server (GitHub, GitLab, Bitbucket, a self-hosted Gitea or a bare repository on a file server) is a convention the team agrees on, not something Git requires.

An SVN working copy is a view of one revision of one directory in the central repository, plus a pristine copy of each checked-out file so local changes can be diffed and reverted without the network. The repository is the only place history exists, which makes backups, auditing and "what is the latest version" simple questions with one answer.

That trade decides a lot. Git gives each contributor a private place to make, reorder and discard commits before anyone else sees them. SVN gives the organization one linear sequence of revisions that every client agrees on, with nothing committed anywhere else.

Branching and merging

In Git a branch is a named pointer to a commit. Creating one is instant and local, switching is a checkout, and deleting a merged branch leaves the commits in place. That is why Git workflows such as GitHub Flow, GitLab Flow and trunk-based development with short-lived branches create a branch for every change and merge it back through a pull or merge request.

In SVN a branch is a copy of a directory, usually trunk/ copied to branches/<name>/. The copy is cheap on the server, but it is a commit that everyone sees, and switching a working copy to it is a server operation. Merge tracking (svn:mergeinfo) has made repeated merges between trunk and a branch workable, but SVN teams tend to keep fewer, longer-lived branches and commit more often to trunk.

If your team reviews every change before it merges, Git's model maps onto that review directly. If your team commits small changes straight to trunk and relies on one shared history, SVN's model does not get in the way.

Large binary files and locking

This is where SVN keeps its strongest following. Because a client only checks out one revision, a repository with years of large art, CAD or video assets does not make every checkout download every past version. SVN also has built-in exclusive locks: mark a file with svn:needs-lock and it arrives read-only until someone takes the lock, which stops two people from editing a file that cannot be merged.

Git stores every version of every file in every full clone, so large binaries make clones heavy. Git LFS replaces those files with pointers and stores the content on a server, and it adds file locking where the host supports it. Partial clone (git clone --filter=blob:none) and sparse-checkout reduce what each client downloads. These work well, but they are extra pieces to set up and to explain to everyone who clones the repository; check your Git host's documentation for its LFS storage and locking support.

Access control and auditing

Subversion can grant or deny read and write access per path inside one repository, through an authz file used by Apache (mod_authz_svn) or svnserve. One repository can hold code that only some people may see.

Git has no per-path read control: anyone who can clone a repository can read all of it. Teams that need separation split code into separate repositories, and they control writes with what the host adds on top, such as protected branches, required reviews and code owners files. If per-folder read permissions are a hard requirement, that alone can decide the question.

What changes when coding agents commit

Coding agents change the load on version control: many contributors working at once, each needing its own isolated workspace, each producing changes that a person or a check should review before they land. Git's model fits this well. Each agent can work on its own branch, git worktree gives several working trees from one clone without re-downloading history, local commits let an agent checkpoint and roll back its own work, and pull requests give a human a place to review what it did.

In SVN every commit is immediately visible on the server, so an agent committing to trunk changes everyone's next update, and isolating an agent means creating a server-side branch for it. Locks help when agents and people touch the same binary files, but the review-before-merge loop most agent tooling assumes is built around Git hosts. Teams running agents against an SVN repository usually do so through git svn or after migrating.

Moving from SVN to Git

Git ships git svn, which can clone an SVN repository with its history (git svn clone --stdlayout for the trunk/branches/tags layout), map SVN usernames to Git authors with an authors file, and keep committing back to SVN while a team transitions. Hosted Git providers also publish import guides; check your provider's documentation for what its importer supports.

Plan for what does not translate one-to-one: SVN properties such as svn:ignore and svn:externals (in Git, .gitignore and submodules or subtrees), empty directories, per-path permissions (split repositories), and locks on binary files (Git LFS). Migrating a large repository with binary history usually means deciding which files move to LFS before the first import, not after.

Which should you choose?

Choose Git if

  • Changes are reviewed in pull or merge requests before they reach the main branch.
  • Many people or coding agents work in parallel and each needs an isolated branch.
  • Contributors need to commit, branch and read history offline.
  • You want the widest choice of hosting, CI and review tooling.

Choose SVN if

  • You need read or write permissions on individual folders inside one repository.
  • Your repository is dominated by large binary files that cannot be merged and need exclusive locks.
  • People only ever need one directory of a very large repository checked out.
  • Your team wants one central history with sequential revision numbers and no local commits.

Questions people ask

Is Git better than SVN?

For most software development, yes: branching is cheaper, work happens offline, and review and CI tooling is built around it. SVN remains a sound choice for centralized control, per-path permissions and locking of large binary files.

Is SVN still used?

Yes. Apache Subversion is still maintained by the Apache Software Foundation and is still used, particularly where large binary assets, file locking or per-directory permissions matter. Check subversion.apache.org for its current release.

Can Git and SVN be used together?

Yes. git svn lets a developer work in a local Git repository and commit back to an SVN server, which is a common way to transition a team gradually.

Does Git support file locking like SVN?

Not in Git itself. Git LFS adds file locking (git lfs lock) for files stored in LFS, on hosts that support the LFS locking API.

What is the main difference between Git and SVN?

Git is distributed: every clone holds the full history and commits are made locally. SVN is centralized: history lives only on the server and every commit goes straight to it.

Check the details

Versions and hosting features change. Confirm current behavior in the official documentation:

Comparisons