diff --git a/src/backport.ts b/src/backport.ts index 79dd41d..50a4c1a 100644 --- a/src/backport.ts +++ b/src/backport.ts @@ -417,7 +417,7 @@ export class Backport { git fetch origin ${target} git worktree add -d .worktree/${branchname} origin/${target} cd .worktree/${branchname} - git checkout -b ${branchname} + git switch --create ${branchname} git cherry-pick -x ${commitShasToCherryPick.join(" ")} \`\`\``; }