Pitmaster

Pure PHP Git implementation. No exec(), no FFI, no extensions.

Pure PHP

No exec('git'), no FFI, no extensions beyond zlib and mbstring. Works everywhere PHP runs.

Read & Write

Loose objects, pack files with delta resolution, index read/write, refs, and config. Full round-trip.

Diff & Merge

Myers O(ND) diff algorithm, byte-exact with git. Three-way merge with conflict markers.

Network Protocol

Clone, fetch, and push via smart HTTP. Ref discovery, pkt-line, side-band, protocol v1 and v2.

Git Operations

add, commit, status, diff, merge, checkout, reset, stash, cherry-pick, revert, rebase, blame, grep.

CLI

18-command CLI mirroring git: log, status, diff, add, commit, branch, merge, stash, blame, grep.

Oracle-Tested

637 scenarios verified against canonical git, using fixtures from libgit2, go-git, isomorphic-git, dulwich, JGit, and git's own test suite.

Full Search

Blame, grep, bisect, notes, log with path filter. Search through history without shelling out.

Ready to get started?

Create your first sandbox in under a minute.

Read the Docs