cherryPick method

Future<void> cherryPick(
  1. String commit, {
  2. String? workDir,
})

Cherry-picks a commit onto the current branch.

Implementation

Future<void> cherryPick(String commit, {String? workDir}) async {
  await _runGit(['cherry-pick', commit], workDir: workDir ?? defaultWorkDir);
}