how to know from which branch is current branch created code example
Example 1: git branch from current branch
git checkout -b <branch-name>
Example 2: how to check current branch in git
git rev-parse --abbrev-ref HEAD
// To check the current branch