create new git branch out of the existing code example Example: create a new branch from existing branch in git git checkout -b subbranch_of_b1 branch1