git branch -a --contains origin/HEAD which branches origin/HEAD is contained in.
that means those branches are the same or newer than origin/HEAD from there you can investigate further.
i usually just look at gitk to see the branch relationship.
greetings, martin.