Skip to content

Instantly share code, notes, and snippets.

@petergi
Created July 1, 2026 18:26
Show Gist options
  • Select an option

  • Save petergi/e2a83ae24f1eeebbf298c61d674738c8 to your computer and use it in GitHub Desktop.

Select an option

Save petergi/e2a83ae24f1eeebbf298c61d674738c8 to your computer and use it in GitHub Desktop.
echo "=== dev vs main divergence ==="; git rev-list --left-right --count origin/main...origin/dev; echo "(left=main-only, right=dev-only)"; echo; echo "=== commits in dev not in main (last 20) ==="; git log --oneline origin/main..origin/dev | head -20; echo; echo "=== commits in main not in dev ==="; git log --oneline origin/dev..origin/main | head -20; echo "(none above = main fully contained in dev)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment