title: Getting the name of the parent origin branch in git?
body: <p>I've cloned some git repository, and did "git branch abcd", whcih switched me to a branch derived from origin/abcd. abcd is not the default origin branch.
  Then, I have created a feature branch "my_feature" out of abcd.
  I want to do "git merge origin/abcd" into my_feature in a script that would be applicable regardless of the name of the origin branch used (or at least applicable to easy cases when there are no complex branch structures described in some other answers about git).</p>
  
  <p>How do I find what is the "closest"/"parent" origin branch off which the current branch was created?</p>