diff --git a/extension.js b/extension.js index 8945789..51a3095 100644 --- a/extension.js +++ b/extension.js @@ -120,7 +120,7 @@ function activate(context) { if (!gitBranch.length) gitBranch = "main"; chp.exec( - `git init && git remote add origin ${gitLink} && git fetch && git checkout -t origin/${gitBranch}`, + `git init && git remote add origin ${gitLink} && git fetch && git checkout -ft origin/${gitBranch}`, { cwd: vscode.workspace.workspaceFolders[0].uri.fsPath }, (err, stdout, stderr) => { if (err) {