how to check the base branch of a branch in git code example Example: find the parent branch of a git branch git log --first-parent