I\'ve used git-blame to find a particular commit. Now I want to find the branch that it originally came from. (From there, I\'ll use the branch name to find the particular t
This worked well enough for me to get the branch name from a detached head in a Jenkins workspace:
git show -s --pretty=%d