git create branch and commit code example Example: create branch in git # Create New Branch And Switch To It $ git checkout -b myBranchName