How to `git log` a tree-ish from another branch? February 26, 2023 by Tarik Try this (without the angle brackets): git log <branch> -- <path/to/file>