History & maintenance
Beyond everyday porcelain, arks implements modern Git history rewriting and repository upkeep commands natively in Rust, tailored for unattended multi-session repositories.
Worktree-free commit replay (arks replay)
arks replay replays commit ranges completely in-memory without touching the working tree or .git/index, making it safe to run concurrently alongside active edits or on bare repositories.
# Replay a topic branch onto main and emit ref-update commands:
arks replay --onto main main..feature
# Advance a branch ref directly (or print update-ref instructions):
arks replay --onto main --advance feature main..feature
arks replay --onto main --contained --ref-action=print main..feature
- Supports
--onto,--advance,--contained, detachedHEADreplay, and--ref-action=update|print. - Fails closed with exit code
1on merge conflicts without mutating the working tree or refs. - Clean-room verified end-to-end against stock
git update-ref --stdin. - Everyday debugging and automation companions also include
arks bisect skip|reset(with pathspec filtering) and machine-readablearks lease --json.
Repository maintenance (arks maintenance)
Keep large or high-churn repositories packed and fast without racing active sessions:
# Run scheduled maintenance tasks once:
arks maintenance run
# Register / unregister repository for periodic maintenance:
arks maintenance register
arks maintenance unregister
# Start / stop background maintenance schedule:
arks maintenance start
arks maintenance stop
Honors maintenance.lock concurrency guards and performs race-safe incremental-repack so active writers do not lose objects.
Native subtree management (arks subtree)
Embed and synchronize sub-repositories without external shell scripts:
# Add an external repository under a prefix:
arks subtree add --prefix=vendor/lib https://example.com/lib.git main --squash
# Pull upstream updates or split local changes back out:
arks subtree pull --prefix=vendor/lib https://example.com/lib.git main --squash
arks subtree split --prefix=vendor/lib -b lib-export
arks subtree push --prefix=vendor/lib https://example.com/lib.git main
Supports add, merge, split, pull, and push with standard git-subtree-dir, git-subtree-mainline, and git-subtree-split trailers and topological DAG projection.
Next
Reftable & native LFS Workflows Concurrent sessions Completeness