# Virtual Git Server > A C# library (NuGet package `GenHTTP.Modules.Git`) that turns a .NET application into a git server for its own data model. Users clone, fetch and push with the regular git client over the smart HTTP protocol, while every request is answered from the application's data - a database, a blob store, an API - with no repository on disk and no git binary on the server. It runs in GenHTTP applications and, through `GenHTTP.Adapters.AspNetCore`, in ASP.NET Core applications. MIT licensed, targets .NET 10 and .NET 11. The application implements `IGitRepository` (read-only: `GetReferencesAsync`, `GetCommitAsync`, `GetTreeAsync`) or `IWritableGitRepository` (adds `PushAsync`, which receives parsed and verified reference updates to accept or reject). The one rule: create a commit once when the data changes, store `GitCommit.Data`, and restore it with `GitCommit.Parse` - commit ids must never change. Supported: smart HTTP, protocol v2 and v0/v1 for fetching, v0 for pushing; clones, incremental fetches, shallow clones; creating, updating and deleting branches and lightweight tags; push options and `remote:` messages; truncated histories served as shallow; regular files, executables, symbolic links. Not supported: SSH, dumb HTTP, SHA-256, partial clones, annotated tags, submodules. ## Documentation - [Overview](https://virtual-git.genhttp.run/docs/): what the library does and how it fits into GenHTTP and ASP.NET Core - [Getting started](https://virtual-git.genhttp.run/docs/getting-started/): install the package and serve a first repository - [How it works](https://virtual-git.genhttp.run/docs/concepts/): references, commits, trees, and why commit ids must never change - [Serving content](https://virtual-git.genhttp.run/docs/repositories/): implementing `IGitRepository` - [Accepting pushes](https://virtual-git.genhttp.run/docs/pushing/): implementing `IWritableGitRepository` - [Hosting](https://virtual-git.genhttp.run/docs/hosting/): multiple repositories, authentication, limits, logging - [ASP.NET Core](https://virtual-git.genhttp.run/docs/aspnet-core/): mapping a repository into a `WebApplication` - [Testing](https://virtual-git.genhttp.run/docs/testing/): testing a repository with a real git client - [Versioned content](https://virtual-git.genhttp.run/docs/examples/versioned-content/): a complete example with versions, drafts and retention - [Directory snapshots](https://virtual-git.genhttp.run/docs/examples/snapshots/): a read-only repository from a directory - [Protocol support](https://virtual-git.genhttp.run/docs/protocol/): every supported and unsupported git feature ## Links - [Source on GitHub](https://github.com/Kaliumhexacyanoferrat/virtual-git-server) - [Package on NuGet](https://www.nuget.org/packages/GenHTTP.Modules.Git/) - [GenHTTP](https://genhttp.org/): the web server framework it is a module of