how to figure out what is the parent branch code example Example: find the parent branch of a git branch git log --first-parent