removeWorktree function
Remove a git worktree.
Implementation
Future<bool> removeWorktree({
String? dir,
required String path,
bool force = false,
}) async {
final result = await runGit([
'worktree',
'remove',
if (force) '--force',
path,
], workingDirectory: dir);
return result.success;
}