I'd like to be able to locate and ideally log only the commits for my branch (experiment
). In other words, from HEAD
of experiment
to its starting point. It would be nice if I did not need to know the parent branch.
The reason why
git log HEAD..master
doesn't work for me, is because master is ahead of my branch:
A---B---F---G master
\
C---D---E experiment
For the same reason, this post doesn't answer my question.
EDIT:
The reason why I was having trouble is I changed the history on experiment
and it diverged from master
so git logged all the commits in the branch, since it never found the point that the they shared history. Accepting answer.