createBranch

fun createBranch(name: String, use: Boolean = true)

Create a new branch as a copy of the current branch.

Parameters

name

New branch name.

use

Whether to switch to this branch.