In following example tree:
A-B-C-D-E (master branch) \\ F-G-H (xxx branch)
I\'m looking for F - the first commit in xxx branch. I
You should use the merge-base functionality which is designed to solve exactly this:
merge-base
git merge-base remotes/origin/ develop