Enumere todas las ramas locales de un branhc
git branch --contains $(cat .git/ORIG_HEAD)
Enthusiastic Eagle
git branch --contains $(cat .git/ORIG_HEAD)
git show-branch | grep '*' | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed 's/.*\[\(.*\)\].*/\1/' | sed 's/[\^~].*//'