git-sim is a command-line visualization tool that generates images or videos depicting the effects of Git operations on your repository.
The tool addresses the challenge of understanding what a Git command will do before executing it, particularly for complex operations like merges, rebases, and cherry-picks. It works by accepting Git command syntax directly at the terminal—for example, `git-sim merge <branch>`—and producing a visual representation of how that command affects your repository state. The visualization can be output as a static image in jpg or png format, or as an animated video in mp4 or webm format. The tool supports a comprehensive set of Git commands including add, branch, checkout, cherry-pick, clean, clone, commit, fetch, merge, pull, push, rebase, reset, revert, stash, and tag, among others.
Adopt this tool if you want to preview Git command effects before running them, share command visualizations with your team for documentation purposes, or create educational content for visual learners. It suits projects where preventing unexpected repository states matters, or where team members benefit from seeing Git workflows illustrated. The tool integrates with git-dummy, a bundled command for generating test repositories to practice on. Animation generation carries a significant performance cost, so the tool provides a `--low-quality` flag for faster testing during development.
Development activity shows consistent engagement with the project through regular updates and maintenance. The maintainer actively solicits community support through sponsorship options and has publicly communicated plans for successor projects that build on this foundation. The tool receives ongoing refinement with features like customizable animation speed, color-coding options by commit author, and support for both dark and light mode visualizations.