CLI reference¶
Every command, grouped the way ff --help groups them. Each page is the same text ff help <command> prints: purpose, usage, examples, options, and details.
Getting started¶
ff init— Create a repository or enable fufu in an existing oneff clone— Copy a repository and enable fufu snapshots
Working changes¶
ff status— Show the working copy statusff diff— Show uncommitted file changes as a patchff restore— Discard file edits, or restore files from a revision or snapshotff commit— Record working-copy changes without stagingff describe— Set a draft message, reword a commit, or rename a branch
Inspect history¶
ff map— Show local branch relationships and parked work (also bareff)ff log— Show commit history and the open change, with change IDsff show— Show a revision and its patch; defaults to the open changeff evolog— Show one change's recorded evolution; defaults to open workff history— Show available undo and redo steps for this worktreeff collide— Check whether two branches' file changes conflict
Branches¶
ff switch— Switch branches or create new work at trunkff branch— List, create, delete, or prune branchesff worktree— List, create, or remove worktrees and retain their captured history
Rewrite commits¶
ff absorb— Add uncommitted changes to an existing commit; defaults to HEADff lift— Reopen a commit's changes as uncommitted work; defaults to HEADff restack— Replay a branch's commits onto its base; defaults to this branchff fold— Replay this branch into a target and delete it; defaults to trunkff edit— Open a session to edit an existing commit's filesff done— Apply an editing or resolution session and return to its branchff resolve— Put a held rewrite's conflicts into the working copy for repair
Remotes¶
ff pull— Update this branch from its base and remote copyff push— Send this branch to its remote copy with a leaseff remote— List configured remote names and fetch URLs
Recovery¶
ff undo— Restore this worktree's recorded local state one undo step backff redo— Step forward again after an undoff op— Inspect recorded operations and recover local stateff op log— List recorded operations, including captures, newest firstff op show— Show an operation's ref transitions and file diffstatff op diff— Compare the recorded file trees of two operationsff op restore— Restore this worktree's recorded local state at an operationff op revert— Invert an operation's ref transitions if those refs have not movedff op trim— Drop operations past the retention cutoff (fufu.keep, 90d)
Setup¶
ff hook— Install shell and agent integrations on this machineff unhook— Remove managed shell and agent integrationsff trigger— Snapshot the working copy nowff watch— Stream operation-history changes as JSON linesff config— List, read, or change fufu settings in Git configurationff doctor— Check operation history, configuration, and installed integrationsff git— Run Git with snapshot and policy checks; help isff help gitff explain— Look up an error id and see what it meansff version— Print build identity and cached update availabilityff update— Show update instructions and offer supported installation updates