Commands
Every command runs as either git sb3 <command> or git-sb3 <command>. Pass
--help to any of them for inline usage.
install
Wire the readable diff driver into git.
See How the diff driver works for the exact git config it writes.
text
Print a project as readable, diff-friendly text: each target's scripts as
scratchblocks, plus its variables, lists, broadcasts, costumes and sounds. This
is the program git invokes for *.sb3 once the driver is installed.
text is also exposed under the alias textconv for clarity in git config.
diff
Generate a visual HTML report of the differences between two versions of a project. The two arguments are resolved flexibly:
- One path → compares the working-tree file against
HEAD. <ref> <path>(first arg isn't an existing file) → extracts the old side from git history (git show <ref>:<path>).- Two paths → compares the two files directly.
watch
Serve the visual diff as a live page that refreshes
as you edit — on file save, or in real time via the
TurboWarp userscript. The two arguments resolve like
diff; the baseline (old) side is fixed for the session and the new
side updates.
Open the printed URL (default http://localhost:9061/) in a browser and leave
it up while you work. See Live diffs for the full workflow.
unpack
Explode an .sb3 into a tidy, line-diffable tree:
Assets are content-addressed by MD5 already, so they round-trip byte-for-byte and only appear in a diff when actually added or removed.
pack
Reassemble a tree produced by unpack back into a normal .sb3 that opens in
the editor and on the website:
If you'd rather review changes in plain git diff without the textconv driver,
commit the unpack output (project.json + assets/) and run pack to
rebuild the .sb3 when you need it.