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);
    }
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.

@param newBranchName
Create branch with this name.
@param fromBranchName
Create branch from this branch.
@throws MojoFailureException
@throws CommandLineException