check on what branch was a branch based code example Example: find the parent branch of a git branch git log --first-parent