ggdiff
v0.0.2
Published
CLI to quickly diff two git branches and display the results in a browser UI
Readme
ggdiff
CLI for diffing two Git refs and previewing the results in a local React UI. Requires Node 18+ and an existing Git repository to compare.
Install
npm install # server / CLI deps
npm --prefix ui installUsage
ggdiff <base> <compare>– launches the CLI (defaults tomain HEAD), serves/api/diff, and opens the browser preview.ggdiff <base> <compare> [--cwd /path/to/repo]– run directly against any repo; omit--cwdto use the current directory.- Stop the server with
Ctrl+C.
After updating the React UI run npm --prefix ui run build to refresh ui/dist. During UI development you can instead run npm --prefix ui run dev for Vite’s live reload and point the CLI to the resulting build when ready.
