Maintained by Derek Ko.
A compact implementation of Git repository storage and selected commands, written in Zig.
- Repository initialization and loose-object storage
- Blob hashing and inspection
- Tree creation and listing
- Commit object creation
- HTTP reference discovery and cloning
- Pack-file decoding, delta reconstruction, and working-tree checkout
Requires Zig 0.15.1 or 0.15.2.
./your_program.sh init
./your_program.sh hash-object -w README.md
./your_program.sh write-tree
./your_program.sh clone https://github.com/Derekko-web/git-zig.git ../git-zig-demoDirect builds use zig build; the executable is zig-out/bin/main.
Source code is in src/main.zig.
This implements selected Git commands and protocol behavior. It is an experimental implementation, rather than a complete replacement for Git.