GitFerry

v0.4.2
io.github.mayank1307/gitferry Checked 2 hours ago Published 28 days ago

Pack, inspect, and apply portable Git change bundles across offline repositories.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pack_changes Pack local Git changes

Read a local Git repository and write a portable .gitferry bundle of commits, staged/unstaged changes, and untracked files. only=repo instead captures tracked files as a snapshot. Review untracked files for secrets before sharing. No network transfer is performed.

ParameterTypeDescription
cwd *stringAbsolute path to the git repository (or any directory inside it)
basestringRef/sha the bundle applies onto (default: merge-base with the upstream tracking branch)
includeCommitsbooleanInclude unpushed commits (default true)
includeStagedbooleanInclude staged (index) changes (default true)
includeUnstagedbooleanInclude unstaged working-tree changes (default true)
includeUntrackedbooleanInclude untracked files (default true)
includeWorktreebooleanInclude staged AND unstaged changes; master switch over includeStaged/includeUnstaged (default true)
onlystringSelect all, uncommitted, staged, unstaged, committed, or repo (tracked-file snapshot). Default all. Include flags can further narrow the selection; repo is exclusive.
outputstringOutput bundle path; defaults to <repo>-<branch>-<sha>.gitferry in cwd
portablebooleanWrite a plain ZIP for git + unzip targets instead of the smaller Brotli-wrapped format (default false)

inspect_bundle Inspect a local GitFerry bundle

Read a local .gitferry bundle, verify checksums and manifest structure, and report its contents without modifying files. Checksums detect corruption; they do not authenticate the sender.

ParameterTypeDescription
bundlePath *stringAbsolute path to the .gitferry bundle file

apply_bundle Apply a local GitFerry bundle

Validate and apply a trusted local .gitferry bundle: replay commits, restore staged/unstaged changes, and write untracked or snapshot files. Modifies the target unless dryRun=true. Preview first and review conflicts afterward. force bypasses repository, dirty-tree, and overwrite guards.

ParameterTypeDescription
bundlePath *stringAbsolute path to the .gitferry bundle file
cwd *stringAbsolute path to the target git repository
dryRunbooleanValidate and report the plan without changing anything (default false)
forcebooleanOverride repo-fingerprint, dirty-tree, and file-overwrite guards (default false)
includeUntrackedbooleanWrite untracked files from the bundle (default true)