GitFerry
v0.4.2Pack, 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.
| Parameter | Type | Description |
|---|---|---|
cwd * | string | Absolute path to the git repository (or any directory inside it) |
base | string | Ref/sha the bundle applies onto (default: merge-base with the upstream tracking branch) |
includeCommits | boolean | Include unpushed commits (default true) |
includeStaged | boolean | Include staged (index) changes (default true) |
includeUnstaged | boolean | Include unstaged working-tree changes (default true) |
includeUntracked | boolean | Include untracked files (default true) |
includeWorktree | boolean | Include staged AND unstaged changes; master switch over includeStaged/includeUnstaged (default true) |
only | string | Select all, uncommitted, staged, unstaged, committed, or repo (tracked-file snapshot). Default all. Include flags can further narrow the selection; repo is exclusive. |
output | string | Output bundle path; defaults to <repo>-<branch>-<sha>.gitferry in cwd |
portable | boolean | Write 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.
| Parameter | Type | Description |
|---|---|---|
bundlePath * | string | Absolute 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.
| Parameter | Type | Description |
|---|---|---|
bundlePath * | string | Absolute path to the .gitferry bundle file |
cwd * | string | Absolute path to the target git repository |
dryRun | boolean | Validate and report the plan without changing anything (default false) |
force | boolean | Override repo-fingerprint, dirty-tree, and file-overwrite guards (default false) |
includeUntracked | boolean | Write untracked files from the bundle (default true) |