git how to create a new branch from another branch locally code example
Example 1: branch from other branch
// Go first to the branch where you want to make a copy of
git checkout -b subbranch branch
Example 2: git create new branch
// create and checkout new branch
git checkout -b new_branch