github view base branch code example
Example 1: find the parent branch of a git branch
git log --first-parent
Example 2: how to check current branch in git
git rev-parse --abbrev-ref HEAD
// To check the current branch
git log --first-parent
git rev-parse --abbrev-ref HEAD
// To check the current branch