VFS for Git: Git at Enterprise Scale
Make massive repositories feel lightweight and fast
Created by Microsoft to support the development of Microsoft Windows, the largest Git repository on earth. | Microsoft

What is VFS for Git?
The Virtual Filesystem for Git (formerly GVFS) is an open source system that enables Git to operate at enterprise-scale. It makes using and managing massive Git repositories possible.

How does it work?
VFS for Git virtualizes the filesystem beneath your Git repository so that Git tools see what appears to be a normal repository when, in fact, the files are not actually present on disk. VFS for Git only downloads files as they are needed.
VFS for Git also manages Git's internal state so that it only considers the files you have accessed, instead of having to examine every file in the repository. This ensures that operations like status and checkout are as fast as possible.
Why VFS for Git?
Git struggles to handle enterprise-scale repositories. Operations like cloning will slow to a crawl when you have millions of files in a repository, and even something as simple as getting your repository status will leave you waiting.
VFS for Git was created by the Azure DevOps team at Microsoft, specifically to deal with these scale issues for Microsoft's own codebases.
With VFS for Git, developers using Git and Azure DevOps can stay productive, even in mammoth repositories like the Windows operating system, which clocks in at roughly 300 GB (3.5 million files). It's the largest Git repository in the world.
VFS for Git is freely available and Open Source. If your team and your codebase are growing to enterprise-scale, VFS for Git may be a great fit.

Example: VFS for Git and the Windows repository
Here's a comparison of some common Git actions on the Windows repository with Azure DevOps.
Action | Without VFS for Git | With VFS for Git |
---|---|---|
Clone (Bare) | 12+ hours | 4-5 minutes |
Checkout | 3 hours | 30 seconds |
Status | 10 minutes | 3 seconds |
Commit | 30 minutes | 6 seconds |
Git at Scale
The recent migration of the Windows codebase to a single Git repo presented us with some very interesting scale challenges. In this series of articles, we'll discuss each of these challenges in depth, and how we solved them.
Technical Scale Challenges
It's become "common knowledge" that Git struggles with larger repos, but what does that mean, exactly? In this article, we'll break dows the challenges Git faces when scaling to large repos.
VFS for Git Design History
In this article, we'll cover how we arrived at the need for VFS for Git and the alternatives that we looked at along the way.
VFS for Git in the news
- GitHub adopts Microsoft's tool for supporting massive software projects
VentureBeat - Microsoft releases Git Virtual File System performance results
SD Times - Microsoft now uses Git and GVFS to develop Windows
TechCrunch - Microsoft hosts the Windows source in a monstrous 300GB Git repository
ArsTechnica - Microsoft brings scalable Git to Visual Studio in improved GVFS
InfoWorld
License
VFS for Git is Open Source, available under an MIT license.
Contribute
See the repository on GitHub.