# Git on object storage only works if you rebuild packfiles

Original title: You can run Git on object storage if you re-make packfiles

> Hacker News story 49730069 · language: en · submitted 2026-09-16
> Web version: https://zeli.app/story/49730069
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 146 · by [evacchi](<https://news.ycombinator.com/user?id=evacchi>) · 💬 35
[original](<https://www.tigrisdata.com/blog/objgit-packfiles/>) · [HN discussion](<https://news.ycombinator.com/item?id=49730069>)

## Summary

Tigris engineer built an open-source Git server backed by object storage. The initial filesystem shim failed on real-world repositories because Git packfiles assume local disk and mmap. The fix: a custom object-storage-native packfile format with a columnar index and fixed-width records, enabling precise HTTP Range requests without client-side changes. The approach now handles production-sized repositories like the Linux kernel, which packs 11.8 million objects into a single 3.4 GiB packfile.

## Key quote

> Filesystem reads in that case are 10 nanoseconds at most (the filesystem cache helps so much here) but doing any network roundtrip is 10 milliseconds at minimum. It’s at least a million times slower because of how reality works.

## HN discussion (35 comments)

### [andrewaylett](<https://news.ycombinator.com/item?id=49764866>)

> `git update-server-info` is your friend; it generates the auxiliary files needed to allow clients to make range requests against packs.
>
> For example: https://andrewaylett.github.io/rgitweb/ is a repository viewer that runs against a static git repo.  It doesn't care what you're storing the pack in, just that the data is there to make the right range requests.

### [delf](<https://news.ycombinator.com/item?id=49765837>)

> This is exactly what GitSocial does: https://gitsocial.org/. Plus it can generate static sites for repositories, letting you serve it all from a bucket.

### [flowingfocus](<https://news.ycombinator.com/item?id=49764997>)

> I recently found https://github.com/enroute-sh/enroute which also does git on object storage
>
> I found the idea of a git-proxy interesting where you start with proxying an existing forge and then later adopt the object storage backend

### [0bytes](<https://news.ycombinator.com/item?id=49764098>)

> 4th submission in 3 days. Is this a marketing spam campaign?

### [pierrebarre](<https://news.ycombinator.com/item?id=49766728>)

> Or just use https://github.com/Barre/ZeroFS
>
> Works pretty awesomely with git workloads, even Linux sized trees.

---

## Cite

- Page: https://zeli.app/story/49730069
- Date: 2026-09-16
- Source: tigrisdata.com (https://www.tigrisdata.com/blog/objgit-packfiles/)
- Hacker News: https://news.ycombinator.com/item?id=49730069

## Other languages

- zh: https://zeli.app/zh/story/49730069 · markdown: https://zeli.app/zh/story/49730069.md
- ja: https://zeli.app/ja/story/49730069 · markdown: https://zeli.app/ja/story/49730069.md
- ko: https://zeli.app/ko/story/49730069 · markdown: https://zeli.app/ko/story/49730069.md
- de: https://zeli.app/de/story/49730069 · markdown: https://zeli.app/de/story/49730069.md
- es: https://zeli.app/es/story/49730069 · markdown: https://zeli.app/es/story/49730069.md
- ru: https://zeli.app/ru/story/49730069 · markdown: https://zeli.app/ru/story/49730069.md
