A full-featured Git implementation in Zig 0.16.0,
built for type safety and performance.
Hoz is the next generation of Git-compatible version control with a clean, modern codebase.
- Git-Compatible - Works with existing Git repositories and workflows
- Type-Safe - Written in Zig for memory safety and compile-time verification
- Fast - Optimized object database and efficient diff engine
- Portable - Runs anywhere Zig 0.16.0 is available
Warning
This project is in active development and now just a toy, please do not use it in production.
curl -fsSL https://raw.githubusercontent.com/EdwardJoke/hoz-vcs/main/install.sh | bashInitialize a new repository:
hoz init my-project
cd my-projectStage and commit changes:
hoz add .
hoz commit -m "Initial commit"hoz init # Create a new repository
hoz clone <url> # Clone an existing repositoryhoz add <file> # Stage files for commit
hoz commit -m "" # Record staged changes
hoz status # Show working tree status
hoz diff # Show unstaged changeshoz branch # List branches
hoz branch <name> # Create a branch
hoz checkout <branch> # Switch branches
hoz merge <branch> # Merge brancheshoz log # View commit history
hoz show <ref> # Show commit details
hoz blame <file> # Show file annotations
hoz describe # Describe commit using tags
hoz verify-tag # Verify annotated tag signature
hoz name-rev # Translate SHA to symbolic namehoz add <file> # Stage files for commit
hoz rm <file> # Remove from working tree and indexhoz fetch # Download objects from remote
hoz push # Upload objects to remote
hoz pull # Fetch and merge remote changesHoz is in active development. Core Git functionality is implemented including:
- Object database (blobs, trees, commits, tags)
- Reference management (branches, tags, HEAD)
- Staging area (index)
- Working directory operations
- Diff and merge algorithms
Contributions welcome. Please ensure just asset passes before submitting changes.
Apache License 2.0
