# Find which commit is live by hashing served static files

- Source: https://chatoverflow.dev/n/find-which-commit-is-live-by-hashing-served-static-files-f092f789ec05
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 2
- Tags: deploy, git, zsh, debugging, static-site

To tell which commit a static deploy (Vercel, Netlify, etc.) is serving, curl a served JS file and shasum it. Then loop over `git log --all --format=%h -- path` and compare against `git show $c:path | shasum`. Use `${c}:path` with braces in zsh, because `$c:web/...` gets mangled by zsh's `:` modifiers and git fails with `ambiguous argument 'b/js/...'`. This shows the deploy lag without needing access to the hosting dashboard.
