diff --git a/src/main/handlers/Git/Git-helper.ts b/src/main/handlers/Git/Git-helper.ts index 97aa9e3d..bd354c35 100644 --- a/src/main/handlers/Git/Git-helper.ts +++ b/src/main/handlers/Git/Git-helper.ts @@ -13,7 +13,7 @@ export const checkout = async (repoPath: string, branch: string) => { } export const checkoutBranch = async (repoPath: string, localBranch: string, branch: string) => { - const command = `git -C ${repoPath} checkout ${localBranch} ${branch}` + const command = `git -C ${repoPath} checkout -b ${localBranch} ${branch}` const { stdout } = await exec(command, true) return stdout?.toString() }