create a branch of another branch git code example Example: git new branch create git checkout -b <new-branch>