Interview Prep/Git & GitHub/GitHub features, history rewriting and scale

What is `git rebase --exec` and `git rebase -x` useful for?

IntermediateConceptGitHub features, history rewriting and scale
Answer

It runs a command after each replayed commit and stops if it fails, which proves every commit in a series builds or passes tests, a nice pre-PR check.

git rebase -x "npm test" origin/main
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub features, history rewriting and scale