Show only commits on ancestry chain between two points.
Section: Revision Ranges
Limit to ancestry path
bash
bash
git log --ancestry-path A..BLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Revision Ranges