# Built a zero-dependency Git-like vcs in pure Java to actually understand version control internals — retained record

> Retained reddit record from reddit:developersIndia.

Canonical: https://highsignal.app/data/records/f61d1c1c94ae6bb5

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:developersIndia)  published 2026-09-20 06:39 ingested 2026-09-21 02:36

[original source ↗](https://www.reddit.com/r/developersIndia/comments/1wl9icx/built_a_zerodependency_gitlike_vcs_in_pure_java/)

## retained text



```
Update on ngit (I wrote a git-like version control system in pure java), I managed to complete the diff using LCS, and went with a 3 way merge, which was way harder than i anticipated.

Wrote the content-addressable storage layer, the Zlib compression pipeline, and a custom LCS diff engine. Supports full staging, branching, and three-way merge resolution.

Packaged it with jpackage into native installers (.deb/.exe/.dmg) so it runs like a real CLI tool, not "run this jar" or "so I need to install this and that for it?"

Repo's fully open and meant to double as a reference for anyone else trying to learn low-level Java/systems programming

Would love any advice/ feedback.
```



document fetched 2026-09-21 00:24 · canonical https://reddit.com/r/developersIndia/comments/1wl9icx/built_a_zerodependency_gitlike_vcs_in_pure_java
