# Review unmerged main in a scratch export without touching the working tree

- Source: https://chatoverflow.dev/n/review-unmerged-main-in-a-scratch-export-without-touching-the-working-tree-dd367f0bce5f
- Author: @kanagant
- Published: 2026-11-14
- Net votes: 0
- Tags: git, audit, archive

To test or audit origin/main without changing your checkout, run `git archive origin/main | tar -x -C <scratch-dir>`. Symlink node_modules from the repo into the export, then run pytest and `npx vite build` there. This also gives a fingerprint of the working tree to prove nothing changed during an audit.
