# Pitmaster > Pitmaster is Git in pure PHP: read and write repositories, compute diffs, merge and speak smart HTTP without shelling out to the git binary or using FFI. ## Pages - [Home](https://pitmaster.inline0.dev/) ## Documentation - [Introduction](https://pitmaster.inline0.dev/docs.md): Pure PHP Git implementation. Read and write Git repositories without shelling out to git. - [Getting Started](https://pitmaster.inline0.dev/docs/getting-started.md): Install Pitmaster and perform basic Git operations in PHP. - [Reading Repositories](https://pitmaster.inline0.dev/docs/operations/read.md): Open repositories and read objects, refs, commits, and history. - [Writing to Repositories](https://pitmaster.inline0.dev/docs/operations/write.md): Initialize repos, stage files, create commits, manage branches and tags. - [Diff](https://pitmaster.inline0.dev/docs/operations/diff.md): Compute diffs between trees, index, and working tree using Myers O(ND) algorithm. - [Merge](https://pitmaster.inline0.dev/docs/operations/merge.md): Three-way merge with fast-forward detection, conflict markers, and merge base computation. - [Status](https://pitmaster.inline0.dev/docs/operations/status.md): Compare HEAD, index, and working tree to determine file status. - [Git Objects](https://pitmaster.inline0.dev/docs/formats/objects.md): Blob, Tree, Commit, Tag objects, ObjectId, loose object format, and serialization. - [Pack Files](https://pitmaster.inline0.dev/docs/formats/pack-files.md): Pack file format, index files, delta resolution, PackWriter, MultiPackIndex, and CommitGraph. - [Index Format](https://pitmaster.inline0.dev/docs/formats.md): Git index (staging area) format, versions 2/3/4, extensions, conflict stages, and IndexWriter. - [Refs](https://pitmaster.inline0.dev/docs/formats/refs.md): Loose refs, packed-refs, RefDatabase, symbolic refs, reflog, and reftable. - [Smart HTTP](https://pitmaster.inline0.dev/docs/network/smart-http.md): Git smart HTTP transport, PktLine encoding, ref discovery, capabilities, and side-band. - [Protocols](https://pitmaster.inline0.dev/docs/network/protocols.md): All supported network protocols for git communication. - [Clone, Fetch, Push](https://pitmaster.inline0.dev/docs/network/clone-fetch-push.md): Network operations for cloning, fetching, and pushing repositories. - [Worktrees](https://pitmaster.inline0.dev/docs/advanced/worktrees.md): Linked worktrees for multiple checkouts from a single repository. - [Submodules](https://pitmaster.inline0.dev/docs/advanced/submodules.md): Git submodule support with gitlink entries, .gitmodules parsing, and status tracking. - [Stash](https://pitmaster.inline0.dev/docs/advanced/stash.md): Save and restore working directory changes using the stash stack. - [Hooks](https://pitmaster.inline0.dev/docs/advanced/hooks.md): Git hook detection, execution, installation, and supported hook types. - [Git LFS](https://pitmaster.inline0.dev/docs/advanced/lfs.md): Git Large File Storage pointer parsing, batch API client, and file transfer. - [CLI](https://pitmaster.inline0.dev/docs/cli.md): Complete command reference for the Pitmaster CLI. - [API](https://pitmaster.inline0.dev/docs/api.md): The PitmasterPitmaster facade and Repository class provide the public PHP API. - [Testing and the git Oracle](https://pitmaster.inline0.dev/docs/testing.md): How Pitmaster is tested against the canonical git binary: unit and integration suites, oracle scenarios, upstream corpora, and the support matrix. ## Optional - [Full documentation](https://pitmaster.inline0.dev/llms-full.txt): Markdown source of every documentation page in one file, 183 KB, about 47,000 tokens