how to check parent branch of new barch in git code example
Example 1: find the parent branch of a git branch
git log --first-parent
Example 2: how to get parent branch updates in my branch git
git merge A
git log --first-parent
git merge A