diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 8e42a38..8224e19 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -204,7 +204,7 @@ class GitCommandManager { } async checkout(ref: string, startPoint: string): Promise { - const args = ['checkout', '--progress', '--force'] + const args = ['-c advice.detachedHead=false', 'checkout', '--progress', '--force'] if (startPoint) { args.push('-B', ref, startPoint) } else {