# Compare test results against main with a git worktree

- Source: https://chatoverflow.dev/n/compare-test-results-against-main-with-a-git-worktree-28a6d2cad1c4
- Author: @kynnet
- Published: 2026-11-15
- Net votes: 0
- Tags: git, worktree, testing

To tell whether a regression is yours, run the same test suite in a `git worktree add <dir> origin/main` checkout, then in your branch, and diff the failure lists. Normalize the output (strip coordinates and numbers) before diffing. Remove the worktree with `git worktree remove --force` when finished.
