how to add existing branch in git code example Example: create a new branch from existing branch in git git checkout -b subbranch_of_b1 branch1