protected void gitCreateAndCheckout ( final String newBranchName , final String fromBranchName ) throws MojoFailureException , CommandLineException { getLog ( ) . info ( "Creating a new branch '" + newBranchName + "' from '" + fromBranchName + "' and checking it out." ) ; executeGitCommand ( "checkout" , "-b" , newBranchName , fromBranchName ) ; }
Executes git checkout - b .