git how to see what branch branch was from code example Example: find the parent branch of a git branch git log --first-parent