which git command creates a new branch from the currently checked-out branch code example Example: git branch command git branch <branchname> (or) git checkout -b <branchname>